The patch titled 'sysctl_max_map_count' should be non-negative has been removed from the -mm tree. Its filename was sysctl_max_map_count-should-be-non-negative.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: 'sysctl_max_map_count' should be non-negative From: Amerigo Wang <amwang@xxxxxxxxxx> Jan Engelhardt reported we have this problem: setting max_map_count to a value large enough results in programs dying at first try. This is on 2.6.31.6: 15:59 borg:/proc/sys/vm # echo $[1<<31-1] >max_map_count 15:59 borg:/proc/sys/vm # cat max_map_count 1073741824 15:59 borg:/proc/sys/vm # echo $[1<<31] >max_map_count 15:59 borg:/proc/sys/vm # cat max_map_count Killed This is because we have a chance to make 'max_map_count' negative. but it's meaningless. Make it only accept non-negative values. Reported-by: Jan Engelhardt <jengelh@xxxxxxxxxx> Signed-off-by: WANG Cong <amwang@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: James Morris <jmorris@xxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sysctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/sysctl.c~sysctl_max_map_count-should-be-non-negative kernel/sysctl.c --- a/kernel/sysctl.c~sysctl_max_map_count-should-be-non-negative +++ a/kernel/sysctl.c @@ -1131,7 +1131,8 @@ static struct ctl_table vm_table[] = { .data = &sysctl_max_map_count, .maxlen = sizeof(sysctl_max_map_count), .mode = 0644, - .proc_handler = proc_dointvec + .proc_handler = proc_dointvec, + .extra1 = &zero, }, #else { _ Patches currently in -mm which might be from amwang@xxxxxxxxxx are origin.patch linux-next.patch xtensa-use-generic-sys_pipe.patch ipc-remove-unreachable-code-in-semc.patch ipc-remove-unreachable-code-in-semc-fix.patch ipc-hard_msgmax-should-be-higher-not-lower-on-64bit.patch kexec-premit-reduction-of-the-reserved-memory-size.patch kexec-premit-reduction-of-the-reserved-memory-size-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html