diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-14 23:12:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-14 23:12:43 -0500 |
commit | 4d98ead183a2be77bfea425d5243e32629eaaeb1 (patch) | |
tree | abd2282b8fed47a972a0334fb5b466d640fe385e /init/main.c | |
parent | a57cb1c1d7974c62a5c80f7869e35b492ace12cd (diff) | |
parent | 4d217a5adccf5e806790c37c61cc374a08bd7381 (diff) |
Merge tag 'modules-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull modules updates from Jessica Yu:
"Summary of modules changes for the 4.10 merge window:
- The rodata= cmdline parameter has been extended to additionally
apply to module mappings
- Fix a hard to hit race between module loader error/clean up
handling and ftrace registration
- Some code cleanups, notably panic.c and modules code use a unified
taint_flags table now. This is much cleaner than duplicating the
taint flag code in modules.c"
* tag 'modules-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
module: fix DEBUG_SET_MODULE_RONX typo
module: extend 'rodata=off' boot cmdline parameter to module mappings
module: Fix a comment above strong_try_module_get()
module: When modifying a module's text ignore modules which are going away too
module: Ensure a module's state is set accordingly during module coming cleanup code
module: remove trailing whitespace
taint/module: Clean up global and module taint flags handling
modpost: free allocated memory
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index 23c275cca73a..c81c9fa21bc7 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -81,6 +81,7 @@ | |||
81 | #include <linux/integrity.h> | 81 | #include <linux/integrity.h> |
82 | #include <linux/proc_ns.h> | 82 | #include <linux/proc_ns.h> |
83 | #include <linux/io.h> | 83 | #include <linux/io.h> |
84 | #include <linux/cache.h> | ||
84 | 85 | ||
85 | #include <asm/io.h> | 86 | #include <asm/io.h> |
86 | #include <asm/bugs.h> | 87 | #include <asm/bugs.h> |
@@ -925,14 +926,16 @@ static int try_to_run_init_process(const char *init_filename) | |||
925 | 926 | ||
926 | static noinline void __init kernel_init_freeable(void); | 927 | static noinline void __init kernel_init_freeable(void); |
927 | 928 | ||
928 | #ifdef CONFIG_DEBUG_RODATA | 929 | #if defined(CONFIG_DEBUG_RODATA) || defined(CONFIG_DEBUG_SET_MODULE_RONX) |
929 | static bool rodata_enabled = true; | 930 | bool rodata_enabled __ro_after_init = true; |
930 | static int __init set_debug_rodata(char *str) | 931 | static int __init set_debug_rodata(char *str) |
931 | { | 932 | { |
932 | return strtobool(str, &rodata_enabled); | 933 | return strtobool(str, &rodata_enabled); |
933 | } | 934 | } |
934 | __setup("rodata=", set_debug_rodata); | 935 | __setup("rodata=", set_debug_rodata); |
936 | #endif | ||
935 | 937 | ||
938 | #ifdef CONFIG_DEBUG_RODATA | ||
936 | static void mark_readonly(void) | 939 | static void mark_readonly(void) |
937 | { | 940 | { |
938 | if (rodata_enabled) | 941 | if (rodata_enabled) |