Files
android_kernel_xiaomi_sm8450/arch/arm64/kernel
Ard Biesheuvel d5e5743797 arm64: kaslr: use callee saved register to preserve SCTLR across C call
The KASLR code incorrectly expects the contents of x18 to be preserved
across a call into C code, and uses it to stash the contents of SCTLR_EL1
before enabling the MMU. If the MMU needs to be disabled again to create
the randomized kernel mapping, x18 is written back to SCTLR_EL1, which is
likely to crash the system if x18 has been clobbered by kasan_early_init()
or kaslr_early_init(). So use x22 instead, which is not in use so far in
head.S

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-03-24 16:19:24 +00:00
..
2012-09-17 13:42:21 +01:00
2016-03-04 18:19:17 +00:00
2016-01-17 19:15:26 -05:00
2016-03-04 18:19:17 +00:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-03-02 15:49:28 +00:00
2016-02-24 14:57:27 +00:00
2016-03-02 15:49:28 +00:00
2016-02-25 10:32:23 +00:00
2016-02-16 15:10:44 +00:00
2015-01-27 09:38:08 +00:00
2016-02-26 15:08:04 +00:00