diff options
author | Ard Biesheuvel <[email protected]> | 2024-01-23 14:30:55 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-01-30 11:52:46 +0000 |
commit | d104a6fef3fec137d8d44961224ab76edbd6cbc7 (patch) | |
tree | f47d9f724775d427401cf038f3df758b712c879b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2fa28abd1090562b4d9bc4aedd70abcca26561af (diff) |
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 <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Sami Tolvanen <[email protected]>
Tested-by: Sami Tolvanen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions