aboutsummaryrefslogtreecommitdiff
path: root/kernel/configs
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2015-07-22 19:05:54 +0100
committerDavid Brown <david.brown@linaro.org>2015-12-08 14:01:12 -0800
commitf45972d0017cff35d576e10f1e276f9f3991bea6 (patch)
tree7645c2ff8eb4f329af11c100ef8bb21aef116fb6 /kernel/configs
parentec874614a43b6b21ea6de2c5a2e9dffe1d62d969 (diff)
arm64: kernel: Add support for Privileged Access Never
commit 338d4f49d6f7114a017d294ccf7374df4f998edc upstream 'Privileged Access Never' is a new arm8.1 feature which prevents privileged code from accessing any virtual address where read or write access is also permitted at EL0. This patch enables the PAN feature on all CPUs, and modifies {get,put}_user helpers temporarily to permit access. This will catch kernel bugs where user memory is accessed directly. 'Unprivileged loads and stores' using ldtrb et al are unaffected by PAN. Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: James Morse <james.morse@arm.com> [will: use ALTERNATIVE in asm and tidy up pan_enable check] Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: David Brown <david.brown@linaro.org>
Diffstat (limited to 'kernel/configs')
0 files changed, 0 insertions, 0 deletions