summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2016-06-20 18:28:01 +0100
committerPrasad Sodagudi <psodagud@codeaurora.org>2017-01-25 18:42:39 -0800
commit76e9e5bbd9122e10e028585c6fac95a5e09cf9e6 (patch)
treecb318b1d858b2b43c78b0858e847d59cf108ad4c /kernel/sysctl_binary.c
parent314869eb56763d34f91d5483b0d510267894fadd (diff)
arm64: kernel: Save and restore UAO and addr_limit on exception entry
commit e19a6ee2460bdd0d0055a6029383422773f9999a upstream. 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. Change-Id: Iaef0dfaa335bd665b15718a2f1bba775ffc18a11 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Git-commit: e19a6ee2460bdd0d0055a6029383422773f9999a Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [psodagud@codeaurora.org bring in changes missed in commit a5a095803c2469cd3d1fc5a11acc1a8150b7c9f4] Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions