summaryrefslogtreecommitdiff
path: root/sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch')
-rw-r--r--sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch b/sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch
new file mode 100644
index 000000000000..528b6b0b9d86
--- /dev/null
+++ b/sys-kernel/cairn-sources/files/5.10.7/hardened-patches/0008-enable-ARM64_SW_TTBR0_PAN-by-default.patch
@@ -0,0 +1,24 @@
+From e0fb583098c5a012a6b2cb2d5d6cb7569a004067 Mon Sep 17 00:00:00 2001
+From: Daniel Micay <danielmicay@gmail.com>
+Date: Sun, 25 Feb 2018 01:39:32 -0500
+Subject: [PATCH 008/113] enable ARM64_SW_TTBR0_PAN by default
+
+---
+ arch/arm64/Kconfig | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index a6b5b7ef40ae..a145245ec5e7 100644
+--- a/arch/arm64/Kconfig
++++ b/arch/arm64/Kconfig
+@@ -1199,6 +1199,7 @@ config RODATA_FULL_DEFAULT_ENABLED
+
+ config ARM64_SW_TTBR0_PAN
+ bool "Emulate Privileged Access Never using TTBR0_EL1 switching"
++ default y
+ help
+ Enabling this option prevents the kernel from accessing
+ user-space memory directly by pointing TTBR0_EL1 to a reserved
+--
+2.30.0
+