mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
e054bcbe7e
commit
5a477e9341
|
|
@ -183,6 +183,16 @@ static const struct ctl_table kern_panic_table[] = {
|
|||
.mode = 0644,
|
||||
.proc_handler = proc_douintvec,
|
||||
},
|
||||
#if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \
|
||||
defined(CONFIG_DEBUG_STACKOVERFLOW)
|
||||
{
|
||||
.procname = "panic_on_stackoverflow",
|
||||
.data = &sysctl_panic_on_stackoverflow,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
static __init int kernel_panic_sysctls_init(void)
|
||||
|
|
|
|||
|
|
@ -1552,16 +1552,6 @@ static const struct ctl_table kern_table[] = {
|
|||
.mode = 0444,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
#if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \
|
||||
defined(CONFIG_DEBUG_STACKOVERFLOW)
|
||||
{
|
||||
.procname = "panic_on_stackoverflow",
|
||||
.data = &sysctl_panic_on_stackoverflow,
|
||||
.maxlen = sizeof(int),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec,
|
||||
},
|
||||
#endif
|
||||
#ifdef CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN
|
||||
{
|
||||
.procname = "ignore-unaligned-usertrap",
|
||||
|
|
|
|||
Loading…
Reference in New Issue