The patch titled Subject: sysctl-handle-overflow-for-file-max-v4 has been added to the -mm tree. Its filename is sysctl-handle-overflow-for-file-max-v4.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/sysctl-handle-overflow-for-file-max-v4.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/sysctl-handle-overflow-for-file-max-v4.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christian Brauner <christian@xxxxxxxxxx> Subject: sysctl-handle-overflow-for-file-max-v4 Link: http://lkml.kernel.org/r/20190210203943.8227-3-christian@xxxxxxxxxx Cc: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Christian Brauner <christian@xxxxxxxxxx> Acked-by: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Cc: Joe Lawrence <joe.lawrence@xxxxxxxxxx> Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx> Cc: Waiman Long <longman@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/sysctl.c | 4 ---- 1 file changed, 4 deletions(-) --- a/kernel/sysctl.c~sysctl-handle-overflow-for-file-max-v4 +++ a/kernel/sysctl.c @@ -2847,10 +2847,6 @@ static int __do_proc_doulongvec_minmax(v break; if (neg) continue; - if ((max && val > *max) || (min && val < *min)) { - err = -EINVAL; - break; - } val = convmul * val / convdiv; if ((min && val < *min) || (max && val > *max)) continue; _ Patches currently in -mm which might be from christian@xxxxxxxxxx are sysctl-handle-overflow-in-proc_get_long.patch sysctl-handle-overflow-for-file-max.patch sysctl-handle-overflow-for-file-max-v4.patch