Re: [PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-21 Thread Waiman Long
On 02/20/2018 08:26 PM, Kees Cook wrote: > On Tue, Feb 20, 2018 at 3:17 PM, Andrew Morton > wrote: >> On Mon, 19 Feb 2018 11:53:50 -0500 Waiman Long wrote: >> >>> Even with clamped sysctl parameters, it is still not that straight >>> forward to figure out the exact range of those parameters. One

Re: [PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-21 Thread Waiman Long
On 02/20/2018 06:17 PM, Andrew Morton wrote: > On Mon, 19 Feb 2018 11:53:50 -0500 Waiman Long wrote: > >> Even with clamped sysctl parameters, it is still not that straight >> forward to figure out the exact range of those parameters. One may >> try to write extreme parameter values to see if they

Re: [PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-20 Thread Kees Cook
On Tue, Feb 20, 2018 at 3:17 PM, Andrew Morton wrote: > On Mon, 19 Feb 2018 11:53:50 -0500 Waiman Long wrote: > >> Even with clamped sysctl parameters, it is still not that straight >> forward to figure out the exact range of those parameters. One may >> try to write extreme parameter values to s

Re: [PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-20 Thread Luis R. Rodriguez
On Tue, Feb 20, 2018 at 03:17:05PM -0800, Andrew Morton wrote: > On Mon, 19 Feb 2018 11:53:50 -0500 Waiman Long wrote: > > > Even with clamped sysctl parameters, it is still not that straight > > forward to figure out the exact range of those parameters. One may > > try to write extreme parameter

Re: [PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-20 Thread Andrew Morton
On Mon, 19 Feb 2018 11:53:50 -0500 Waiman Long wrote: > Even with clamped sysctl parameters, it is still not that straight > forward to figure out the exact range of those parameters. One may > try to write extreme parameter values to see if they get clamped. > To make it easier, a warning with t

[PATCH 2/3] sysctl: Warn when a clamped sysctl parameter is set out of range

2018-02-19 Thread Waiman Long
Even with clamped sysctl parameters, it is still not that straight forward to figure out the exact range of those parameters. One may try to write extreme parameter values to see if they get clamped. To make it easier, a warning with the expected range will now be printed in the kernel ring buffer