From: Petr Mladek <pmladek@suse.com>
To: " Justin He (Arm Technology China) " <Justin.He@arm.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>,
KeesCook <keescook@chromium.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
"Steven Rostedt (VMware)" <rostedt@goodmis.org>,
Shuah Khan <shuah@kernel.org>,
"Tobin C.Harding" <tobin@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD
Date: Fri, 16 Aug 2019 10:20:00 +0200 [thread overview]
Message-ID: <20190816082000.jmz47bke4it72sv5@pathway.suse.cz> (raw)
In-Reply-To: <DB7PR08MB3082C27A075C410FE339F308F7D60@DB7PR08MB3082.eurprd08.prod.outlook.com>
On Fri 2019-08-09 10:56:04, Justin He (Arm Technology China) wrote:
>
>
> > -----Original Message-----
> > From: Andy Shevchenko <andy.shevchenko@gmail.com>
> > Sent: 2019年8月9日 18:52
> > To: Justin He (Arm Technology China) <Justin.He@arm.com>
> > Cc: Petr Mladek <pmladek@suse.com>; Andy Shevchenko
> > <andriy.shevchenko@linux.intel.com>; Sergey Senozhatsky
> > <sergey.senozhatsky@gmail.com>; Geert Uytterhoeven
> > <geert+renesas@glider.be>; Linux Kernel Mailing List <linux-
> > kernel@vger.kernel.org>; Thomas Gleixner <tglx@linutronix.de>; Steven
> > Rostedt (VMware) <rostedt@goodmis.org>; Kees Cook
> > <keescook@chromium.org>; Shuah Khan <shuah@kernel.org>; Tobin C.
> > Harding <tobin@kernel.org>
> > Subject: Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid
> > pointers for %pD
> >
> > On Fri, Aug 9, 2019 at 4:28 AM Jia He <justin.he@arm.com> wrote:
> > >
> > > Commit 3e5903eb9cff ("vsprintf: Prevent crash when dereferencing
> > invalid
> > > pointers") prevents most crash except for %pD.
> > > There is an additional pointer dereferencing before dentry_name.
> > >
> > > At least, vma->file can be NULL and be passed to printk %pD in
> > > print_bad_pte, which can cause crash.
> > >
> > > This patch fixes it with introducing a new file_dentry_name.
> > >
> >
> > Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> >
> > Perhaps you need to add a Fixes tag
> Thanks, Andy
> Fixes: 3e5903eb9cff ("vsprintf: Prevent crash when dereferencing invalid pointers")
I have added the Fixes tag and pushed the patch into printk.git,
branch for-5.4.
Thanks for the fix.
Best Regards,
Petr
next prev parent reply other threads:[~2019-08-16 8:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-09 1:24 Jia He
2019-08-09 1:24 ` [PATCH 2/2] lib/test_printf: add test of null/invalid pointer dereference for dentry Jia He
2019-08-09 10:51 ` Andy Shevchenko
2019-08-16 8:26 ` Petr Mladek
2019-08-16 8:31 ` Justin He (Arm Technology China)
2019-08-09 10:51 ` [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD Andy Shevchenko
2019-08-09 10:56 ` Justin He (Arm Technology China)
2019-08-16 8:20 ` Petr Mladek [this message]
2019-08-15 7:52 ` Sergey Senozhatsky
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=20190816082000.jmz47bke4it72sv5@pathway.suse.cz \
--to=pmladek@suse.com \
--cc=Justin.He@arm.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=geert+renesas@glider.be \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=sergey.senozhatsky@gmail.com \
--cc=shuah@kernel.org \
--cc=tglx@linutronix.de \
--cc=tobin@kernel.org \
/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
all inboxes | Powered by JetHome®