Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-16 Thread Petr Mladek
ergey Senozhatsky > > ; Geert Uytterhoeven > > ; Linux Kernel Mailing List > ker...@vger.kernel.org>; Thomas Gleixner ; Steven > > Rostedt (VMware) ; Kees Cook > > ; Shuah Khan ; Tobin C. > > Harding > > Subject: Re: [PATCH 1/2] vsprintf: Prevent crash when dere

Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-15 Thread Sergey Senozhatsky
On (08/09/19 09:24), Jia He 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 > pr

RE: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-09 Thread Justin He (Arm Technology China)
Gleixner ; Steven > Rostedt (VMware) ; Kees Cook > ; Shuah Khan ; Tobin C. > Harding > 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 wrote: > > > > Commit 3e5903eb9cff ("

Re: [PATCH 1/2] vsprintf: Prevent crash when dereferencing invalid pointers for %pD

2019-08-09 Thread Andy Shevchenko
On Fri, Aug 9, 2019 at 4:28 AM Jia He 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