linux-stable/scripts/gcc-plugins
Ard Biesheuvel 5d17986cbf gcc-plugins/stackleak: Avoid .head.text section
commit e7d24c0aa8 upstream.

The .head.text section carries the startup code that runs with the MMU
off or with a translation of memory that deviates from the ordinary one.
So avoid instrumentation with the stackleak plugin, which already avoids
.init.text and .noinstr.text entirely.

Fixes: 48204aba80 ("x86/sme: Move early SME kernel encryption handling into .head.text")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202403221630.2692c998-oliver.sang@intel.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240328064256.2358634-2-ardb+git@google.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-13 13:01:47 +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_per_task_plugin: Fix for older GCC < 6 2019-05-10 15:35:01 -07: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: Reorganize gimple includes for GCC 13 2023-06-14 11:12:59 +02: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: use /dev/urandom 2022-04-20 09:34:18 +02:00
Makefile kbuild: rebuild GCC plugins when the compiler is upgraded 2021-03-11 14:40:50 +09:00
randomize_layout_plugin.c randstruct: Fix gcc-plugin performance mode to stay in group 2023-11-28 16:56:26 +00: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/stackleak: Avoid .head.text section 2024-04-13 13:01:47 +02:00
structleak_plugin.c gcc-plugins: structleak: remove unneeded variable 'ret' 2021-03-01 19:19:44 -08:00