Skip to content

Commit

Permalink
x86/stackprotector: Remove stack protector test scripts
Browse files Browse the repository at this point in the history
With GCC 8.1 now the minimum supported compiler for x86, these scripts
are no longer needed.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-3-brgerst@gmail.com
  • Loading branch information
Brian Gerst authored and Ingo Molnar committed Feb 18, 2025
1 parent a3e8fe8 commit 0ee2689
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
11 changes: 1 addition & 10 deletions arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ config X86
select HAVE_FUNCTION_ARG_ACCESS_API
select HAVE_SETUP_PER_CPU_AREA
select HAVE_SOFTIRQ_ON_OWN_STACK
select HAVE_STACKPROTECTOR if CC_HAS_SANE_STACKPROTECTOR
select HAVE_STACKPROTECTOR
select HAVE_STACK_VALIDATION if HAVE_OBJTOOL
select HAVE_STATIC_CALL
select HAVE_STATIC_CALL_INLINE if HAVE_OBJTOOL
Expand Down Expand Up @@ -426,15 +426,6 @@ config PGTABLE_LEVELS
default 3 if X86_PAE
default 2

config CC_HAS_SANE_STACKPROTECTOR
bool
default $(success,$(srctree)/scripts/gcc-x86_64-has-stack-protector.sh $(CC) $(CLANG_FLAGS)) if 64BIT
default $(success,$(srctree)/scripts/gcc-x86_32-has-stack-protector.sh $(CC) $(CLANG_FLAGS))
help
We have to make sure stack protector is unconditionally disabled if
the compiler produces broken code or if it does not let us control
the segment on 32-bit kernels.

menu "Processor type and features"

config SMP
Expand Down
8 changes: 0 additions & 8 deletions scripts/gcc-x86_32-has-stack-protector.sh

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/gcc-x86_64-has-stack-protector.sh

This file was deleted.

0 comments on commit 0ee2689

Please sign in to comment.