[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFLxGvzP5wMUvXzTFc8S8oqfM8mereFSy92qwwmgg-R73Z9sgQ@mail.gmail.com>
Date: Thu, 23 Jul 2020 21:57:18 +0200
From: Richard Weinberger <richard.weinberger@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
linux-mtd@...ts.infradead.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] mtd: properly check all write ioctls for permissions
On Thu, Jul 23, 2020 at 1:19 PM Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
>
> On Thu, Jul 16, 2020 at 01:53:46PM +0200, Greg Kroah-Hartman wrote:
> > When doing a "write" ioctl call, properly check that we have permissions
> > to do so before copying anything from userspace or anything else so we
> > can "fail fast". This includes also covering the MEMWRITE ioctl which
> > previously missed checking for this.
> >
> > Cc: Miquel Raynal <miquel.raynal@...tlin.com>
> > Cc: Richard Weinberger <richard@....at>
> > Cc: Vignesh Raghavendra <vigneshr@...com>
> > Cc: stable <stable@...nel.org>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> > ---
> > drivers/mtd/mtdchar.c | 54 +++++++++++++++++++++++++++++++++++--------
> > 1 file changed, 45 insertions(+), 9 deletions(-)
>
> Any objection to this patch getting into 5.8-final?
Well, I hoped to get some acks/reviews...
Applied to mtd/fixes! :-)
--
Thanks,
//richard
Powered by blists - more mailing lists