android_kernel_oneplus_msm8998/arch/arm64
James Morse 13e05550e1 arm64: kernel: Add support for User Access Override
'User Access Override' is a new ARMv8.2 feature which allows the
unprivileged load and store instructions to be overridden to behave in
the normal way.

This patch converts {get,put}_user() and friends to use ldtr*/sttr*
instructions - so that they can only access EL0 memory, then enables
UAO when fs==KERNEL_DS so that these functions can access kernel memory.

This allows user space's read/write permissions to be checked against the
page tables, instead of testing addr<USER_DS, then using the kernel's
read/write permissions.

Signed-off-by: James Morse <james.morse@arm.com>
[catalin.marinas@arm.com: move uao_thread_switch() above dsb()]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

(cherry picked from commit 57f4959bad0a154aeca125b7d38d1d9471a12422)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
2016-05-11 22:19:23 +08:00
..
boot ls2080a/dts: Add little endian property for GPIO IP block 2015-12-11 16:13:03 -08:00
configs arm64 fixes and clean-ups: 2015-11-12 15:33:11 -08:00
crypto arm64: crypto: reduce priority of core AES cipher 2015-11-18 12:09:08 +00:00
include arm64: kernel: Add support for User Access Override 2016-05-11 22:19:23 +08:00
kernel arm64: kernel: Add support for User Access Override 2016-05-11 22:19:23 +08:00
kvm arm/arm64: KVM: Fix ioctl error handling 2016-03-09 15:34:51 -08:00
lib arm64: kernel: Add support for User Access Override 2016-05-11 22:19:23 +08:00
mm arm64: kernel: Add support for User Access Override 2016-05-11 22:19:23 +08:00
net arm64: bpf: add 'store immediate' instruction 2015-12-03 11:38:31 -05:00
xen arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
Kconfig arm64: kernel: Add support for User Access Override 2016-05-11 22:19:23 +08:00
Kconfig.debug arm64: remove redundant FRAME_POINTER kconfig option and force to select it 2015-11-10 10:36:00 +00:00
Kconfig.platforms ARM: DT updates for v4.4 2015-11-10 15:06:26 -08:00
Makefile Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules 2016-05-11 22:19:08 +08:00