Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sysctl: Move sysctl_panic_on_stackoverflow to kernel/panic.c

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>

+10 -10
+10
kernel/panic.c
··· 183 183 .mode = 0644, 184 184 .proc_handler = proc_douintvec, 185 185 }, 186 + #if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \ 187 + defined(CONFIG_DEBUG_STACKOVERFLOW) 188 + { 189 + .procname = "panic_on_stackoverflow", 190 + .data = &sysctl_panic_on_stackoverflow, 191 + .maxlen = sizeof(int), 192 + .mode = 0644, 193 + .proc_handler = proc_dointvec, 194 + }, 195 + #endif 186 196 }; 187 197 188 198 static __init int kernel_panic_sysctls_init(void)
-10
kernel/sysctl.c
··· 1552 1552 .mode = 0444, 1553 1553 .proc_handler = proc_dointvec, 1554 1554 }, 1555 - #if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \ 1556 - defined(CONFIG_DEBUG_STACKOVERFLOW) 1557 - { 1558 - .procname = "panic_on_stackoverflow", 1559 - .data = &sysctl_panic_on_stackoverflow, 1560 - .maxlen = sizeof(int), 1561 - .mode = 0644, 1562 - .proc_handler = proc_dointvec, 1563 - }, 1564 - #endif 1565 1555 #ifdef CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN 1566 1556 { 1567 1557 .procname = "ignore-unaligned-usertrap",