From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Radim Pavlik <radim.pavlik@tbs-biometrics.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
Jiri Slaby <jirislaby@kernel.org>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] sc16is7xx: Prevent dereferencing invalid data when gpio_hog used
Date: Mon, 20 Dec 2021 12:45:00 +0100 [thread overview]
Message-ID: <YcBsvFGF5DasixIy@kroah.com> (raw)
In-Reply-To: <20211220113603.1311-1-radim.pavlik@tbs-biometrics.com>
On Mon, Dec 20, 2021 at 12:36:03PM +0100, Radim Pavlik wrote:
> gpio_hog is trying to use gpio functions during probe call.
> At that time we dont have initialized port data which are dereferenced
> via assigned gpio.direction_input/output functions.
> This results in unable to handle kernel NULL pointer dereference
> followed by Kernel panic.
> This patch prevents that.
>
> Due to changed order of initialization 'port' before 'gpio controller'
> was also changed error path which resulted in removed label.
>
> No fixes tag because patch spans across multiple patches.
Then list the individual patches please. Or at least give us a chance
to know how far back to backport this to stable kernels.
thanks,
greg k-h
next prev parent reply other threads:[~2021-12-20 11:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAHp75VeaWJBstu2j1-wkBkPfgc0dXvjWZR01d8-q0P8t_3gvNA@mail.gmail.com>
2021-12-20 11:36 ` [PATCH v2] sc16is7xx: Prevent dereferencing invalid data when gpio_hog used Radim Pavlik
2021-12-20 11:45 ` Greg Kroah-Hartman [this message]
2021-12-20 11:45 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YcBsvFGF5DasixIy@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=radim.pavlik@tbs-biometrics.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox