diff options
author | Mark Rutland <mark.rutland@arm.com> | 2018-07-11 15:56:48 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-12 15:49:47 +0200 |
commit | baaa7237fecc5ada99e518f38541126977ca7ff4 (patch) | |
tree | 3816c163ef9d02a4bd72a1ed83bb38932a7c36b1 /arch/arm64/kernel/sys32.c | |
parent | arm64: don't reload GPRs after apply_ssbd (diff) | |
download | linux-baaa7237fecc5ada99e518f38541126977ca7ff4.tar.xz linux-baaa7237fecc5ada99e518f38541126977ca7ff4.zip |
arm64: zero GPRs upon entry from EL0
We can zero GPRs x0 - x29 upon entry from EL0 to make it harder for
userspace to control values consumed by speculative gadgets.
We don't blat x30, since this is stashed much later, and we'll blat it
before invoking C code.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/sys32.c')
0 files changed, 0 insertions, 0 deletions