aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch b/common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch
deleted file mode 100644
index 016ebb4e..00000000
--- a/common/recipes-kernel/linux/linux-yocto-4.9.21/0039-KPTI-Report-when-enabled.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From e09e4eba09f13bd94283ce92d0a246ec3a97d7e7 Mon Sep 17 00:00:00 2001
-From: Kees Cook <keescook@chromium.org>
-Date: Wed, 3 Jan 2018 10:18:01 -0800
-Subject: [PATCH 039/103] KPTI: Report when enabled
-
-Make sure dmesg reports when KPTI is enabled.
-
-Signed-off-by: Kees Cook <keescook@chromium.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/x86/mm/kaiser.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/arch/x86/mm/kaiser.c b/arch/x86/mm/kaiser.c
-index d43f369..b6b0f3a 100644
---- a/arch/x86/mm/kaiser.c
-+++ b/arch/x86/mm/kaiser.c
-@@ -10,6 +10,9 @@
- #include <linux/mm.h>
- #include <linux/uaccess.h>
-
-+#undef pr_fmt
-+#define pr_fmt(fmt) "Kernel/User page tables isolation: " fmt
-+
- #include <asm/kaiser.h>
- #include <asm/tlbflush.h> /* to verify its kaiser declarations */
- #include <asm/pgtable.h>
-@@ -292,7 +295,7 @@ void __init kaiser_check_boottime_disable(void)
- return;
-
- disable:
-- pr_info("Kernel/User page tables isolation: disabled\n");
-+ pr_info("disabled\n");
-
- silent_disable:
- kaiser_enabled = 0;
-@@ -352,6 +355,8 @@ void __init kaiser_init(void)
- kaiser_add_user_map_early(&debug_idt_table,
- sizeof(gate_desc) * NR_VECTORS,
- __PAGE_KERNEL);
-+
-+ pr_info("enabled\n");
- }
-
- /* Add a mapping to the shadow mapping, and synchronize the mappings */
---
-2.7.4
-