[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdb+C64AF_N3goRz206k_YfoHn3_kietet6yvz=FrbuUWw@mail.gmail.com>
Date: Mon, 28 Nov 2022 21:37:20 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Kent Gibson <warthog618@...il.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH v2 0/2] gpiolib: don't allow user-space to crash the
kernel with hot-unplugs
On Mon, Nov 28, 2022 at 6:52 PM Bartosz Golaszewski <brgl@...ev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
>
> This is a second iteration of the changes that aim at fixing the situation
> in which the user-space can provoke a NULL-pointer derefence in the kernel
> when a GPIO device that's in use by user-space is removed.
>
> v1 -> v2:
> - add missing gdev->chip checks in patch 1/2
> - add a second patch that protects the structures that can be accessed
> by user-space calls against concurrent removal
Thanks for looking into this.
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
for the series.
Yours,
Linus Walleij
Powered by blists - more mailing lists