linux/mm/kasan
Masahiro Yamada 893ab00439 kbuild: remove cc-option test of -fno-stack-protector
Some Makefiles already pass -fno-stack-protector unconditionally.
For example, arch/arm64/kernel/vdso/Makefile, arch/x86/xen/Makefile.

No problem report so far about hard-coding this option. So, we can
assume all supported compilers know -fno-stack-protector.

GCC 4.8 and Clang support this option (https://godbolt.org/z/_HDGzN)

Get rid of cc-option from -fno-stack-protector.

Remove CONFIG_CC_HAS_STACKPROTECTOR_NONE, which is always 'y'.

Note:
arch/mips/vdso/Makefile adds -fno-stack-protector twice, first
unconditionally, and second conditionally. I removed the second one.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
2020-07-07 11:13:10 +09:00
..
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
common.c kasan: move kasan_report() into report.c 2020-06-02 10:59:12 -07:00
generic.c kasan: disable branch tracing for core runtime 2020-05-23 10:26:31 -07:00
generic_report.c kasan: detect negative size in memory operation function 2020-04-02 09:35:30 -07:00
init.c mm: remove __ARCH_HAS_5LEVEL_HACK and include/asm-generic/5level-fixup.h 2020-06-04 19:06:21 -07:00
kasan.h kasan: add missing functions declarations to kasan.h 2020-05-14 10:00:35 -07:00
quarantine.c mm: convert totalram_pages and totalhigh_pages variables to atomic 2018-12-28 12:11:47 -08:00
report.c kasan: move kasan_report() into report.c 2020-06-02 10:59:12 -07:00
tags.c kasan: disable branch tracing for core runtime 2020-05-23 10:26:31 -07:00
tags_report.c kasan: detect negative size in memory operation function 2020-04-02 09:35:30 -07:00