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:
Mark Johnston 2024-01-11 11:42:47 -05:00
parent e2417a21a0
commit d682a91726

View file

@ -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