[PATCH][UNSTABLE][EOAN] UBUNTU: SAUCE: (lockdown) s390/setup: Actually init kernel lock down

Dimitri John Ledkov xnox at ubuntu.com
Fri Sep 13 23:05:04 UTC 2019

From: Philipp Rudo <prudo at linux.ibm.com>

BugLink: https://bugs.launchpad.net/bugs/1843961

Kernel lock down isn't initalized in common but in arch code. So
initialize it for s390 as well.

Signed-off-by: Philipp Rudo <prudo at linux.ibm.com>
Signed-off-by: Dimitri John Ledkov <xnox at ubuntu.com>
 arch/s390/kernel/setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index 253177900950..2ba122f1dd4f 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -49,6 +49,7 @@
 #include <linux/memory.h>
 #include <linux/compat.h>
 #include <linux/start_kernel.h>
+#include <linux/security.h>
 #include <asm/boot_data.h>
 #include <asm/ipl.h>
@@ -1107,6 +1108,7 @@ void __init setup_arch(char **cmdline_p)
 		pr_info("Linux is running as a guest in 64-bit mode\n");
+	init_lockdown();
 	/* Have one command line that is parsed and saved in /proc/cmdline */
 	/* boot_command_line has been already set up in early.c */

More information about the kernel-team mailing list