diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-01-10 14:26:20 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-01-12 13:47:19 +0100 |
commit | 8c5a19cb17a71e52303150335b459c7d2d28a155 (patch) | |
tree | 630c65317a8d350959b90fd2ac2f5c235402c3c1 /kernel/kallsyms_internal.h | |
parent | arm64: irq: include <linux/cpumask.h> (diff) | |
download | linux-8c5a19cb17a71e52303150335b459c7d2d28a155.tar.xz linux-8c5a19cb17a71e52303150335b459c7d2d28a155.zip |
arm64: scs: Work around full LTO issue with dynamic SCS
Full LTO takes the '-mbranch-protection=none' passed to the compiler
when generating the dynamic shadow call stack patching code as a hint to
stop emitting PAC instructions altogether. (Thin LTO appears unaffected
by this)
Work around this by stripping unwind tables from the object in question,
which should be sufficient to prevent the patching code from attempting
to patch itself.
Fixes: 3b619e22c460 ("arm64: implement dynamic shadow call stack for Clang")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240110132619.258809-2-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'kernel/kallsyms_internal.h')
0 files changed, 0 insertions, 0 deletions