| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2025-07-10 | Run `cargo fmt` | Sebastian Holmin | 1 | -3/+3 | |
| 2025-02-25 | Remove redundant warn(undocumented_unsafe_blocks) attrs | Joakim Hulthe | 1 | -1/+0 | |
| 2024-11-26 | Make unix signal-handler signal-safe | Joakim Hulthe | 1 | -121/+259 | |
| Other changes: - Re-enable the signal handler in release-builds. - Disable backtrace printing by default since it's not signal-safe. - Add `MULLVAD_BACKTRACE_ON_FAULT` env variable to enable backtracing. - Remove the alternate signal stack. The reasons for this are: - Setting up an alt-stack in a safe way is not trivial, our previous attempt was unsound in the presence of stack overflows. It can be done safely with mmap, but would require careful review. - The alt-stack is thread-local, meaning it would need to be initialized on a per-thread basis. We would need to hook into tokio and std::thread::spawn to be able to get good coverage, and even then there would no good way to ensure that *all* threads have an alternate stack, except that... - Rust (by default) allocates an alternate stack for every thread. Unfortunately, the prescence of Go code in our linked binary disables this feature. IMO, we should strive towards not having any Go code linked into the daemon for this reason. | |||||
| 2024-11-07 | Disable `fault_handler` in release builds | Joakim Hulthe | 1 | -79/+131 | |
| 2024-06-25 | Print backtrace on caught fault signals (unix) | Joakim Hulthe | 1 | -0/+5 | |
| Useful for debugging nil derefs in linked Go code and whatnot. Co-authored-by: Sebastian Holmin <sebastian.holmin@mullvad.net> | |||||
| 2024-02-19 | Fix redundant imports | David Lönnhager | 1 | -1/+0 | |
| 2024-01-05 | Run `cargo +nightly fmt` | Sebastian Holmin | 1 | -2/+5 | |
| 2023-08-08 | Use std::ffi for int/short/char FFI types | Linus Färnstrand | 1 | -2/+2 | |
| 2023-08-08 | Migrate from libc::c_void to std::ffi::c_void | Linus Färnstrand | 1 | -1/+2 | |
| 2022-06-21 | Fix the large majority of clippy warnings | Jonathan | 1 | -1/+1 | |
| This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR. | |||||
| 2022-01-11 | Use ": " as delimiter instead of " - " between messages and value | Linus Färnstrand | 1 | -1/+1 | |
| 2020-08-28 | Remove a use of wildcard imports in favor of importing used items | Linus Färnstrand | 1 | -1/+1 | |
| 2020-02-28 | Use alternative stack | Emīls | 1 | -19/+67 | |
| 2020-02-28 | Add signal handler for unix | Emīls | 1 | -0/+34 | |
| 2020-02-28 | Factor exception logging to be multi-platform | Emīls | 1 | -0/+3 | |
