diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2024-01-23 14:30:55 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-01-30 12:52:46 +0100 |
commit | d104a6fef3fec137d8d44961224ab76edbd6cbc7 (patch) | |
tree | f47d9f724775d427401cf038f3df758b712c879b /drivers/gpu | |
parent | arm64: Revert "scs: Work around full LTO issue with dynamic SCS" (diff) | |
download | linux-d104a6fef3fec137d8d44961224ab76edbd6cbc7.tar.xz linux-d104a6fef3fec137d8d44961224ab76edbd6cbc7.zip |
arm64: scs: Disable LTO for SCS patching code
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 disabling LTO for the compilation unit, which
appears to convince the linker that it should still use PAC in the rest
of the kernel..
Fixes: 3b619e22c460 ("arm64: implement dynamic shadow call stack for Clang")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Tested-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20240123133052.1417449-6-ardb+git@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions