On Fri 2019-08-09 10:56:04,  Justin He (Arm Technology China)  wrote:
> 
> 
> > -----Original Message-----
> > From: Andy Shevchenko <andy.shevche...@gmail.com>
> > Sent: 2019年8月9日 18:52
> > To: Justin He (Arm Technology China) <justin...@arm.com>
> > Cc: Petr Mladek <pmla...@suse.com>; Andy Shevchenko
> > <andriy.shevche...@linux.intel.com>; Sergey Senozhatsky
> > <sergey.senozhat...@gmail.com>; Geert Uytterhoeven
> > <geert+rene...@glider.be>; Linux Kernel Mailing List <linux-
> > ker...@vger.kernel.org>; Thomas Gleixner <t...@linutronix.de>; Steven
> > Rostedt (VMware) <rost...@goodmis.org>; Kees Cook
> > <keesc...@chromium.org>; Shuah Khan <sh...@kernel.org>; Tobin C.
> > Harding <to...@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...@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.shevche...@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

Reply via email to