aboutsummaryrefslogtreecommitdiffstats
path: root/module/Kbuild.in
diff options
context:
space:
mode:
authorTony Hutter <[email protected]>2024-07-11 16:41:26 -0700
committerGitHub <[email protected]>2024-07-11 16:41:26 -0700
commit156a64161b4f9da35f2e0484106173344cf78317 (patch)
tree6f5135f20a1f7d00e5531e91daae59528b0b62c4 /module/Kbuild.in
parent4367312760612cb755acfc218ffeda8eb35ce509 (diff)
Linux 6.9: Fix UBSAN errors in zap_micro.c
You can use the UBSAN_SANITIZE_* Kbuild options to exclude certain kernel objects from the UBSAN checks. We previously excluded zap_micro.o with: UBSAN_SANITIZE_zap_micro.o := n For some reason that didn't work for the 6.9 kernel, which wants us to use: UBSAN_SANITIZE_zfs/zap_micro.o := n Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #16278 Closes #16330
Diffstat (limited to 'module/Kbuild.in')
-rw-r--r--module/Kbuild.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/Kbuild.in b/module/Kbuild.in
index 9e44364b7..470745271 100644
--- a/module/Kbuild.in
+++ b/module/Kbuild.in
@@ -490,6 +490,7 @@ zfs-$(CONFIG_PPC64) += $(addprefix zfs/,$(ZFS_OBJS_PPC_PPC64))
UBSAN_SANITIZE_zap_leaf.o := n
UBSAN_SANITIZE_zap_micro.o := n
UBSAN_SANITIZE_sa.o := n
+UBSAN_SANITIZE_zfs/zap_micro.o := n
# Suppress incorrect warnings from versions of objtool which are not
# aware of x86 EVEX prefix instructions used for AVX512.