Re: [PATCH v5] proc/sysctl: add shared variables for range check

2019-05-23 Thread Aaron Tomlin
On Tue 2019-04-30 20:01 +0200, Matteo Croce wrote: > In the sysctl code the proc_dointvec_minmax() function is often used to > validate the user supplied value between an allowed range. This function > uses the extra1 and extra2 members from struct ctl_table as minimum and > maximum allowed value.

Re: [PATCH v5] proc/sysctl: add shared variables for range check

2019-05-16 Thread Kees Cook
On Thu, May 16, 2019 at 06:09:53PM +0200, Matteo Croce wrote: > On Tue, Apr 30, 2019 at 8:14 PM Kees Cook wrote: > > > > On Tue, Apr 30, 2019 at 11:01 AM Matteo Croce wrote: > > > > > > In the sysctl code the proc_dointvec_minmax() function is often used to > > > validate the user supplied value

Re: [PATCH v5] proc/sysctl: add shared variables for range check

2019-05-16 Thread Matteo Croce
On Tue, Apr 30, 2019 at 8:14 PM Kees Cook wrote: > > On Tue, Apr 30, 2019 at 11:01 AM Matteo Croce wrote: > > > > In the sysctl code the proc_dointvec_minmax() function is often used to > > validate the user supplied value between an allowed range. This function > > uses the extra1 and extra2 mem

Re: [PATCH v5] proc/sysctl: add shared variables for range check

2019-04-30 Thread Kees Cook
On Tue, Apr 30, 2019 at 11:01 AM Matteo Croce wrote: > > In the sysctl code the proc_dointvec_minmax() function is often used to > validate the user supplied value between an allowed range. This function > uses the extra1 and extra2 members from struct ctl_table as minimum and > maximum allowed va