]> git.saurik.com Git - apple/xnu.git/blame_incremental - san/kasan-blacklist
xnu-7195.101.1.tar.gz
[apple/xnu.git] / san / kasan-blacklist
... / ...
CommitLineData
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.
5
6[.*]
7
8# Blanket ignore non-sanitized functions
9fun:__nosan_*
10
11# Try really hard to avoid panicing while debugging
12src:./osfmk/kdp/*
13src:./osfmk/kern/debug.c
14
15[address]
16
17# Exclude linker sets
18type:struct linker_set_entry
19type:linker_set_entry
20type:struct startup_entry
21type:startup_entry
22
23# Exclude per-cpu data structures the assembly accesses
24type:vm_statistics64
25type:struct vm_statistics64
26type:vm_statistics64_data_t
27type:struct processor
28type:processor
29
30# Exclude KASan itself
31src:./san/kasan.c
32src:./san/kasan-fakestack.c
33src:./san/kasan-x86_64.c
34src:./san/kasan-memintrinsics.c
35src:./san/kasan_dynamic_blacklist.c
36
37# Exclude other sanitizers
38src:./san/ksancov.c
39
40# Exclude dtrace function that does weird stack manipulations
41fun:fbt_perfCallback
42
43# Exclude leak detection code that reads all memory
44fun:_ZL18IOTrackingLeakScanPv
45
46# Exclude KASAN dependencies
47# XXX: could this be relaxed since fakestack is reentrant?
48src:./osfmk/kern/zalloc.c
49