]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fixes for 4.9
authorSasha Levin <sashal@kernel.org>
Mon, 1 Apr 2019 15:20:22 +0000 (11:20 -0400)
committerSasha Levin <sashal@kernel.org>
Mon, 1 Apr 2019 15:20:22 +0000 (11:20 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.9/arm64-support-keyctl-system-call-in-32-bit-mode.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/arm64-support-keyctl-system-call-in-32-bit-mode.patch b/queue-4.9/arm64-support-keyctl-system-call-in-32-bit-mode.patch
new file mode 100644 (file)
index 0000000..42aab73
--- /dev/null
@@ -0,0 +1,37 @@
+From 5b2e9589e24ec2ef54171627804c7f623e7d88c1 Mon Sep 17 00:00:00 2001
+From: Eric Biggers <ebiggers@google.com>
+Date: Wed, 8 Mar 2017 16:27:04 -0800
+Subject: arm64: support keyctl() system call in 32-bit mode
+
+[ Upstream commit 5c2a625937ba49bc691089370638223d310cda9a ]
+
+As is the case for a number of other architectures that have a 32-bit
+compat mode, enable KEYS_COMPAT if both COMPAT and KEYS are enabled.
+This allows AArch32 programs to use the keyctl() system call when
+running on an AArch64 kernel.
+
+Signed-off-by: Eric Biggers <ebiggers@google.com>
+Signed-off-by: Will Deacon <will.deacon@arm.com>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ arch/arm64/Kconfig | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index 3e43874568f9..2eb8ae1b2d03 100644
+--- a/arch/arm64/Kconfig
++++ b/arch/arm64/Kconfig
+@@ -1079,6 +1079,10 @@ config SYSVIPC_COMPAT
+       def_bool y
+       depends on COMPAT && SYSVIPC
++config KEYS_COMPAT
++      def_bool y
++      depends on COMPAT && KEYS
++
+ endmenu
+ menu "Power management options"
+-- 
+2.19.1
+
index 122b700e8dd43d4a19bedbfc15a01e9ae0fbb919..9a6d5d8626ccf510441064c54536970d890a6a83 100644 (file)
@@ -53,3 +53,4 @@ kvm-x86-emulate-msr_ia32_arch_capabilities-on-amd-hosts.patch
 usb-gadget-f_hid-fix-deadlock-in-f_hidg_write.patch
 xhci-fix-port-resume-done-detection-for-ss-ports-with-lpm-enabled.patch
 revert-usb-core-only-clean-up-what-we-allocated.patch
+arm64-support-keyctl-system-call-in-32-bit-mode.patch