Message ID | 20170124184159.GH7572@leverpostej (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/init/main.c b/init/main.c index b0c9d6f..d72a8d0 100644 --- a/init/main.c +++ b/init/main.c @@ -82,6 +82,7 @@ #include <linux/proc_ns.h> #include <linux/io.h> #include <linux/cache.h> +#include <linux/rodata_test.h> #include <asm/io.h> #include <asm/bugs.h> @@ -937,10 +938,12 @@ static int __init set_debug_rodata(char *str) #ifdef CONFIG_DEBUG_RODATA static void mark_readonly(void) { - if (rodata_enabled) + if (rodata_enabled) { mark_rodata_ro(); - else + rodata_test(); + } else { pr_info("Kernel memory protection disabled.\n"); + } } #else static inline void mark_readonly(void)