diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-04-27 19:00:11 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-05-15 18:35:49 +0300 |
commit | da64e9d1f8c3dad6898dac6edb39a68d3aa9ce93 (patch) | |
tree | df04377d65e9c322df4a1fd0824ca27457427e99 /arch/arm64/mm/proc.S | |
parent | ddc9863e9e9025e2fc0c8dba31cc060cd626606f (diff) | |
download | linux-da64e9d1f8c3dad6898dac6edb39a68d3aa9ce93.tar.xz |
arm64: Reserve register x18 from general allocation with SCS
Reserve the x18 register from general allocation when SCS is enabled,
because the compiler uses the register to store the current task's
shadow stack pointer. Note that all external kernel modules must also be
compiled with -ffixed-x18 if the kernel has SCS enabled.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm/proc.S')
0 files changed, 0 insertions, 0 deletions