mirror of
https://github.com/opnsense/src.git
synced 2026-03-12 05:32:15 -04:00
conf: Add a KMSAN kernel option
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
4fd450a87d
commit
30d00832d7
2 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue