android_kernel_oneplus_msm8998/arch/arm64
Marc Zyngier 5838a6dbb1 UPSTREAM: arm64: Disable PAN on uaccess_enable()
Commit 4b65a5db3627 ("arm64: Introduce uaccess_{disable,enable}
functionality based on TTBR0_EL1") added conditional user access
enable/disable. Unfortunately, a typo prevents the PAN bit from being
cleared for user access functions.

Restore the PAN functionality by adding the missing '!'.

Fixes: b65a5db3627 ("arm64: Introduce uaccess_{disable,enable} functionality based on TTBR0_EL1")
Reported-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

Bug: 31432001
Change-Id: If61cb6cc756affc7df7fa06213723a8b96eb1e80
(cherry picked from commit 75037120e62b58c536999eb23d70cfcb6d6c0bcc)
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
2017-01-16 15:00:56 +05:30
..
boot Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2016-09-20 15:18:54 +08:00
configs goldfish: enable CONFIG_INET_DIAG_DESTROY 2017-01-02 13:54:08 +05:30
crypto crypto: arm64/aes-ce - fix for big endian 2017-01-12 11:22:50 +01:00
include UPSTREAM: arm64: Disable PAN on uaccess_enable() 2017-01-16 15:00:56 +05:30
kernel BACKPORT: arm64: Disable TTBR0_EL1 during normal kernel execution 2017-01-16 14:50:50 +05:30
kvm Merge branch 'v4.4/topic/hibernate' into linux-linaro-lsk-v4.4 2016-11-17 14:14:11 +08:00
lib BACKPORT: arm64: Factor out PAN enabling/disabling into separate uaccess_* macros 2017-01-16 14:50:50 +05:30
mm UPSTREAM: arm64: Handle faults caused by inadvertent user access with PAN enabled 2017-01-16 15:00:56 +05:30
net arm64: bpf: add 'store immediate' instruction 2015-12-03 11:38:31 -05:00
xen UPSTREAM: arm64: xen: Enable user access before a privcmd hvc call 2017-01-16 15:00:56 +05:30
Kconfig UPSTREAM: arm64: Enable CONFIG_ARM64_SW_TTBR0_PAN 2017-01-16 15:00:56 +05:30
Kconfig.debug UPSTREAM: arm64: enable CONFIG_DEBUG_RODATA by default 2017-01-02 13:54:08 +05:30
Kconfig.platforms ARM: DT updates for v4.4 2015-11-10 15:06:26 -08:00
Makefile Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2016-08-18 12:33:31 +08:00