From: Andrew Morton New sysctl numbers are old hat. Cc: Arjan van de Ven Cc: Kees Cook Signed-off-by: Andrew Morton --- fs/proc/base.c | 2 +- include/linux/sysctl.h | 1 - kernel/sysctl.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff -puN fs/proc/base.c~proc-maps-protection-tidy fs/proc/base.c --- a/fs/proc/base.c~proc-maps-protection-tidy +++ a/fs/proc/base.c @@ -123,7 +123,7 @@ struct pid_entry { NULL, &proc_info_file_operations, \ { .proc_read = &proc_##OTYPE } ) -int maps_protect = 0; +int maps_protect; EXPORT_SYMBOL(maps_protect); static struct fs_struct *get_fs_struct(struct task_struct *task) diff -puN include/linux/sysctl.h~proc-maps-protection-tidy include/linux/sysctl.h --- a/include/linux/sysctl.h~proc-maps-protection-tidy +++ a/include/linux/sysctl.h @@ -165,7 +165,6 @@ enum KERN_MAX_LOCK_DEPTH=74, KERN_NMI_WATCHDOG=75, /* int: enable/disable nmi watchdog */ KERN_PANIC_ON_NMI=76, /* int: whether we will panic on an unrecovered */ - KERN_MAPS_PROTECT=77, /* int: whether we protect maps from public visibility */ }; diff -puN kernel/sysctl.c~proc-maps-protection-tidy kernel/sysctl.c --- a/kernel/sysctl.c~proc-maps-protection-tidy +++ a/kernel/sysctl.c @@ -605,7 +605,7 @@ static ctl_table kern_table[] = { }, #endif { - .ctl_name = KERN_MAPS_PROTECT, + .ctl_name = CTL_UNNUMBERED, .procname = "maps_protect", .data = &maps_protect, .maxlen = sizeof(int), _