linux/scripts/gcc-plugins
Ard Biesheuvel dfbdcda280 gcc-plugins: arm-ssp: Prepare for THREAD_INFO_IN_TASK support
We will be enabling THREAD_INFO_IN_TASK support for ARM, which means
that we can no longer load the stack canary value by masking the stack
pointer and taking the copy that lives in thread_info. Instead, we will
be able to load it from the task_struct directly, by using the TPIDRURO
register which will hold the current task pointer when
THREAD_INFO_IN_TASK is in effect. This is much more straight-forward,
and allows us to declutter this code a bit while at it.

Note that this means that ARMv6 (non-v6K) SMP systems can no longer use
this feature, but those are quite rare to begin with, so this is a
reasonable trade off.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
2021-09-27 16:54:01 +02:00
..
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
arm_ssp_per_task_plugin.c gcc-plugins: arm-ssp: Prepare for THREAD_INFO_IN_TASK support 2021-09-27 16:54:01 +02:00
cyc_complexity_plugin.c gcc-plugins: Replace HTTP links with HTTPS ones 2020-07-13 09:29:09 -07:00
gcc-common.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-gimple-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-ipa-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-rtl-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gcc-generate-simple_ipa-pass.h gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
gen-random-seed.sh scripts: make some scripts executable 2021-08-10 09:13:25 +09:00
Kconfig gcc-plugins: simplify GCC plugin-dev capability test 2020-12-04 14:09:55 -08:00
latent_entropy_plugin.c gcc-plugins: latent_entropy: remove unneeded semicolon 2021-03-01 19:19:50 -08:00
Makefile kbuild: rebuild GCC plugins when the compiler is upgraded 2021-03-11 14:40:50 +09:00
randomize_layout_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
sancov_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
stackleak_plugin.c gcc-plugins: remove code for GCC versions older than 4.9 2020-12-04 14:09:41 -08:00
structleak_plugin.c gcc-plugins: structleak: remove unneeded variable 'ret' 2021-03-01 19:19:44 -08:00