Re: [PATCH v2 0/3] sysctl: fix range-checking in do_proc_dointvec_minmax_conv()

2019-02-07 Thread Zev Weiss
On Thu, Feb 07, 2019 at 09:51:44AM CST, Luis Chamberlain wrote: On Thu, Feb 07, 2019 at 06:34:23AM -0600, Zev Weiss wrote: Hello, After being left with an unusable system after a typo executing something like 'echo $((1<<24)) > /proc/sys/vm/max_map_count', I found that do_proc_dointvec_minmax_c

Re: [PATCH v2 0/3] sysctl: fix range-checking in do_proc_dointvec_minmax_conv()

2019-02-07 Thread Luis Chamberlain
On Thu, Feb 07, 2019 at 06:34:23AM -0600, Zev Weiss wrote: > Hello, > > After being left with an unusable system after a typo executing > something like 'echo $((1<<24)) > /proc/sys/vm/max_map_count', I found > that do_proc_dointvec_minmax_conv() was missing a check to ensure that > the converted

[PATCH v2 0/3] sysctl: fix range-checking in do_proc_dointvec_minmax_conv()

2019-02-07 Thread Zev Weiss
Hello, After being left with an unusable system after a typo executing something like 'echo $((1<<24)) > /proc/sys/vm/max_map_count', I found that do_proc_dointvec_minmax_conv() was missing a check to ensure that the converted value actually fits in an int. The first of the following patches enha