Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit b6540de

Browse files
ubizjakIngo Molnar
authored andcommitted
x86/percpu: Disable named address spaces for KCSAN
-fsanitize=thread (KCSAN) is at the moment incompatible with named address spaces in a similar way as KASAN - see GCC PR sanitizer/111736: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111736 The patch disables named address spaces with KCSAN. Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: https://lore.kernel.org/r/20240325110128.615933-1-ubizjak@gmail.com
1 parent c567f29 commit b6540de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,8 @@ config USE_X86_SEG_SUPPORT
24392439
# with named address spaces - see GCC PR sanitizer/111736.
24402440
#
24412441
depends on !KASAN
2442+
# -fsanitize=thread (KCSAN) is also incompatible.
2443+
depends on !KCSAN
24422444

24432445
config CC_HAS_SLS
24442446
def_bool $(cc-option,-mharden-sls=all)

0 commit comments

Comments
 (0)