Re: [PATCH v4 2/6] proc/sysctl: Check for invalid flags bits

From: Andrew Morton
Date: Mon Mar 12 2018 - 18:42:53 EST


On Mon, 12 Mar 2018 18:12:47 -0400 Waiman Long <longman@xxxxxxxxxx> wrote:

> On 03/12/2018 04:52 PM, Andrew Morton wrote:
> > On Mon, 12 Mar 2018 16:15:40 -0400 Waiman Long <longman@xxxxxxxxxx> wrote:
> >
> >> Checking code is added to check for invalid flags in the ctl_table
> >> and return error if an unknown flag is used.
> > Why? What's wrong with the old code, what value does this change add,
> > etc.
>
> This is an additional checking code requested by Luis.

Readers of this patch will wish to know why it exists. That doesn't
tell us!