https://github.com/torvalds/linux
Revision e19a6ee2460bdd0d0055a6029383422773f9999a authored by James Morse on 20 June 2016, 17:28:01 UTC, committed by Will Deacon on 07 July 2016, 14:55:37 UTC
If we take an exception while at EL1, the exception handler inherits
the original context's addr_limit and PSTATE.UAO values. To be consistent
always reset addr_limit and PSTATE.UAO on (re-)entry to EL1. This
prevents accidental re-use of the original context's addr_limit.

Based on a similar patch for arm from Russell King.

Cc: <stable@vger.kernel.org> # 4.6-
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 4c2e07c
History
Tip revision: e19a6ee2460bdd0d0055a6029383422773f9999a authored by James Morse on 20 June 2016, 17:28:01 UTC
arm64: kernel: Save and restore UAO and addr_limit on exception entry
Tip revision: e19a6ee
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 3.7 KB
system_certificates.S -rw-r--r-- 917 bytes
system_keyring.c -rw-r--r-- 6.8 KB

back to top