conf: Add a KMSAN kernel option
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
4fd450a87d
commit
30d00832d7
@ -109,6 +109,12 @@ SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kcsan \
|
||||
-fsanitize=thread
|
||||
.endif
|
||||
|
||||
KMSAN_ENABLED!= grep KMSAN opt_global.h || true ; echo
|
||||
.if !empty(KMSAN_ENABLED)
|
||||
SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kmsan \
|
||||
-fsanitize=kernel-memory
|
||||
.endif
|
||||
|
||||
KUBSAN_ENABLED!= grep KUBSAN opt_global.h || true ; echo
|
||||
.if !empty(KUBSAN_ENABLED)
|
||||
SAN_CFLAGS+= -fsanitize=undefined
|
||||
|
@ -232,6 +232,7 @@ COVERAGE opt_global.h
|
||||
KASAN opt_global.h
|
||||
KCOV
|
||||
KCSAN opt_global.h
|
||||
KMSAN opt_global.h
|
||||
KUBSAN opt_global.h
|
||||
|
||||
# POSIX kernel options
|
||||
|
Loading…
Reference in New Issue
Block a user