diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-07-15 02:26:52 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-07-18 16:54:56 +0200 |
commit | 69d638e67e5bfc5fedcae4072f144a4f7d798c9a (patch) | |
tree | 7609b870b6116e04516fb3bb2901d9f64e65434c /docs/HACKING.md | |
parent | 111ff5d5115cb2f49aba59da5dbdf96a28d0974d (diff) | |
download | systemd-69d638e67e5bfc5fedcae4072f144a4f7d798c9a.tar.gz |
mkosi: Changes to allow booting with sanitizers in mkosi
- Extra memory because ASAN needs it
- The environment variables to make the sanitizers more useful
- LD_PRELOAD because the ASAN DSO needs to be the first in the list
- The sanitizer library packages
- Disable syscall filters because they interfere with ASAN
- Disable systemd-hwdb-update because it's super slow when systemd-hwdb
is built with sanitizers
- Take the value for meson's b_sanitize option from the SANITIZERS
environment variable
Diffstat (limited to 'docs/HACKING.md')
-rw-r--r-- | docs/HACKING.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/HACKING.md b/docs/HACKING.md index 9e5313e07a..a74d0468e5 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -140,6 +140,11 @@ enabled that are suitable when hacking on systemd (such as internal documentation consistency checks). Those are not useful when compiling for distribution and can be disabled by setting `-Dmode=release`. +## Sanitizers in mkosi + +See [Testing systemd using sanitizers](TESTING_WITH_SANITIZERS.md) for more information +on how to build with sanitizers enabled in mkosi. + ## Fuzzers systemd includes fuzzers in `src/fuzz/` that use libFuzzer and are automatically |