mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
conf: Do not set -fno-sanitize-memory-param-retval for old compilers
The option was introduced in LLVM 16.
Fixes: b6c653c974 ("kmsan: Set -fno-sanitize-memory-param-retval for now")
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: Juniper Networks, Inc.
This commit is contained in:
parent
e2417a21a0
commit
d682a91726
1 changed files with 4 additions and 2 deletions
|
|
@ -125,8 +125,10 @@ KMSAN_ENABLED!= grep KMSAN opt_global.h || true ; echo
|
|||
# Disable -fno-sanitize-memory-param-retval until interceptors have been
|
||||
# updated to work properly with it.
|
||||
SAN_CFLAGS+= -DSAN_NEEDS_INTERCEPTORS -DSAN_INTERCEPTOR_PREFIX=kmsan \
|
||||
-fsanitize=kernel-memory \
|
||||
-fno-sanitize-memory-param-retval
|
||||
-fsanitize=kernel-memory
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 160000
|
||||
SAN_CFLAGS+= -fno-sanitize-memory-param-retval
|
||||
.endif
|
||||
.endif
|
||||
|
||||
KUBSAN_ENABLED!= grep KUBSAN opt_global.h || true ; echo
|
||||
|
|
|
|||
Loading…
Reference in a new issue