original_kernel/scripts/gcc-plugins
Ard Biesheuvel e7d24c0aa8 gcc-plugins/stackleak: Avoid .head.text section
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>
2024-04-03 14:35:49 -07:00
..
.gitignore
Kconfig
Makefile gcc-plugins: drop -std=gnu++11 to fix GCC 13 build 2023-02-02 16:31:23 +00:00
arm_ssp_per_task_plugin.c
gcc-common.h gcc-plugins: Rename last_stmt() for GCC 14+ 2023-08-10 23:10:09 -07:00
gcc-generate-gimple-pass.h
gcc-generate-ipa-pass.h
gcc-generate-rtl-pass.h
gcc-generate-simple_ipa-pass.h
latent_entropy_plugin.c gcc-plugins: latent_entropy: Fix typo (args -> argc) in plugin description 2023-11-14 09:32:47 -08:00
randomize_layout_plugin.c gcc-plugins: randstruct: Update code comment in relayout_struct() 2023-11-27 16:30:05 -08:00
sancov_plugin.c
stackleak_plugin.c gcc-plugins/stackleak: Avoid .head.text section 2024-04-03 14:35:49 -07:00
structleak_plugin.c