forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kasan-blacklist
49 lines (37 loc) · 1.19 KB
/
kasan-blacklist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This file declares the list of source files that should be exempt from
# AddressSanitizer instrumentation. Usually, this is because a file is used by
# the AddressSanitizer runtime itself, or because the code executes before
# the runtime has been initialized.
[.*]
# Blanket ignore non-sanitized functions
fun:__nosan_*
# Try really hard to avoid panicing while debugging
src:./osfmk/kdp/*
src:./osfmk/kern/debug.c
[address]
# Exclude linker sets
type:struct linker_set_entry
type:linker_set_entry
type:struct startup_entry
type:startup_entry
# Exclude per-cpu data structures the assembly accesses
type:vm_statistics64
type:struct vm_statistics64
type:vm_statistics64_data_t
type:struct processor
type:processor
# Exclude KASan itself
src:./san/kasan.c
src:./san/kasan-fakestack.c
src:./san/kasan-x86_64.c
src:./san/kasan-memintrinsics.c
src:./san/kasan_dynamic_blacklist.c
# Exclude other sanitizers
src:./san/ksancov.c
# Exclude dtrace function that does weird stack manipulations
fun:fbt_perfCallback
# Exclude leak detection code that reads all memory
fun:_ZL18IOTrackingLeakScanPv
# Exclude KASAN dependencies
# XXX: could this be relaxed since fakestack is reentrant?
src:./osfmk/kern/zalloc.c