summaryrefslogtreecommitdiff
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2024-01-10 16:26:20 +0300
committerWill Deacon <will@kernel.org>2024-01-12 15:47:19 +0300
commit8c5a19cb17a71e52303150335b459c7d2d28a155 (patch)
tree630c65317a8d350959b90fd2ac2f5c235402c3c1 /arch/arm64/include
parentb95df3bd1ea31fadc9e1471a036b4c08199aa0f0 (diff)
downloadlinux-8c5a19cb17a71e52303150335b459c7d2d28a155.tar.xz
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 'arch/arm64/include')
0 files changed, 0 insertions, 0 deletions