aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-21 20:56:45 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-21 20:56:45 -0500
commit7bb033829ef3ecfc491c0ed0197966e8f197fbdc (patch)
tree9bf410d9726a351970e83bf5f189b5f10035d6f6 /kernel/module.c
parent4a0853bf88c8f56e1c01eda02e6625aed09d55d9 (diff)
parent0f5bf6d0afe4be6e1391908ff2d6dc9730e91550 (diff)
Merge tag 'rodata-v4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull rodata updates from Kees Cook: "This renames the (now inaccurate) DEBUG_RODATA and related SET_MODULE_RONX configs to the more sensible STRICT_KERNEL_RWX and STRICT_MODULE_RWX" * tag 'rodata-v4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: arch: Rename CONFIG_DEBUG_RODATA and CONFIG_DEBUG_MODULE_RONX arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 1a17ec0c8ae7..a3889169a3ae 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -76,9 +76,9 @@
76/* 76/*
77 * Modules' sections will be aligned on page boundaries 77 * Modules' sections will be aligned on page boundaries
78 * to ensure complete separation of code and data, but 78 * to ensure complete separation of code and data, but
79 * only when CONFIG_DEBUG_SET_MODULE_RONX=y 79 * only when CONFIG_STRICT_MODULE_RWX=y
80 */ 80 */
81#ifdef CONFIG_DEBUG_SET_MODULE_RONX 81#ifdef CONFIG_STRICT_MODULE_RWX
82# define debug_align(X) ALIGN(X, PAGE_SIZE) 82# define debug_align(X) ALIGN(X, PAGE_SIZE)
83#else 83#else
84# define debug_align(X) (X) 84# define debug_align(X) (X)
@@ -1846,7 +1846,7 @@ static void mod_sysfs_teardown(struct module *mod)
1846 mod_sysfs_fini(mod); 1846 mod_sysfs_fini(mod);
1847} 1847}
1848 1848
1849#ifdef CONFIG_DEBUG_SET_MODULE_RONX 1849#ifdef CONFIG_STRICT_MODULE_RWX
1850/* 1850/*
1851 * LKM RO/NX protection: protect module's text/ro-data 1851 * LKM RO/NX protection: protect module's text/ro-data
1852 * from modification and any data from execution. 1852 * from modification and any data from execution.