1 # This file declares the list of source files that should be exempt from
2 # AddressSanitizer instrumentation. Usually, this is because a file is used by
3 # the AddressSanitizer runtime itself, or because the code executes before
4 # the runtime has been initialized.
8 # Blanket ignore non-sanitized functions
11 # Try really hard to avoid panicing while debugging
13 src:./osfmk/kern/debug.c
18 type:struct linker_set_entry
20 type:struct startup_entry
23 # Exclude per-cpu data structures the assembly accesses
25 type:struct vm_statistics64
26 type:vm_statistics64_data_t
30 # Exclude KASan itself
32 src:./san/kasan-fakestack.c
33 src:./san/kasan-x86_64.c
34 src:./san/kasan-memintrinsics.c
35 src:./san/kasan_dynamic_blacklist.c
37 # Exclude other sanitizers
40 # Exclude dtrace function that does weird stack manipulations
43 # Exclude leak detection code that reads all memory
44 fun:_ZL18IOTrackingLeakScanPv
46 # Exclude KASAN dependencies
47 # XXX: could this be relaxed since fakestack is reentrant?
48 src:./osfmk/kern/zalloc.c