Skip to content

Commit f61f02d

Browse files
ubizjakIngo Molnar
authored andcommitted
x86/percpu: Re-enable named address spaces with KASAN for GCC 13.3+
Commit: 68fb3ca ("x86/percpu: Disable named address spaces for KASAN") ... disabled support for named address spaces with KASAN due to the incompatibility issue between named AS and KASAN. GCC 13.3 has fixed this issue (GCC PR sanitizer/111736) so the support for named address spaces can be re-enabled with KASAN for GCC compiler version >= 13.3. Note that the patch considers GCC 14 to be fixed - if somebody is using snapshots of the GCC 14 before the fix, they should upgrade. Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Jakub Jelinek <[email protected]> Cc: Nick Desaulniers <[email protected]> Cc: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ce99b9c commit f61f02d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

arch/x86/Kconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,14 +2435,17 @@ endmenu
24352435
config CC_HAS_NAMED_AS
24362436
def_bool CC_IS_GCC && GCC_VERSION >= 120100
24372437

2438+
config CC_HAS_NAMED_AS_FIXED_ASAN
2439+
def_bool CC_IS_GCC && GCC_VERSION >= 130300
2440+
24382441
config USE_X86_SEG_SUPPORT
24392442
def_bool y
24402443
depends on CC_HAS_NAMED_AS
24412444
#
2442-
# -fsanitize=kernel-address (KASAN) is at the moment incompatible
2443-
# with named address spaces - see GCC PR sanitizer/111736.
2445+
# -fsanitize=kernel-address (KASAN) is incompatible with named
2446+
# address spaces with GCC < 13.3 - see GCC PR sanitizer/111736.
24442447
#
2445-
depends on !KASAN
2448+
depends on !KASAN || CC_HAS_NAMED_AS_FIXED_ASAN
24462449

24472450
config CC_HAS_SLS
24482451
def_bool $(cc-option,-mharden-sls=all)

0 commit comments

Comments
 (0)