diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-03-28 09:42:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-13 14:10:11 +0300 |
commit | 2d38d16138db4bdeb5c9790e3f91693f95ad13aa (patch) | |
tree | 40342a62e13611c81a6b0778ce98188bdc73309e /scripts/gen-randstruct-seed.sh | |
parent | 4f8154f775197d0021b690c2945d6a4d8094c8f6 (diff) | |
download | linux-2d38d16138db4bdeb5c9790e3f91693f95ad13aa.tar.xz |
gcc-plugins/stackleak: Avoid .head.text section
commit e7d24c0aa8e678f41457d1304e2091cac6fd1a2e 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: 48204aba801f1b51 ("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>
Diffstat (limited to 'scripts/gen-randstruct-seed.sh')
0 files changed, 0 insertions, 0 deletions