summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorJia He <justin.he@arm.com>2019-08-09 03:24:56 +0200
committerPetr Mladek <pmladek@suse.com>2019-08-15 16:40:10 +0200
commit36594b317c656bec8f968db93701d2cb9bc9155c (patch)
tree4cebb6b88c3d8f37dc076b8bd219ec03f21f974f /usr
parentMerge tag 'printk-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/p... (diff)
downloadlinux-36594b317c656bec8f968db93701d2cb9bc9155c.tar.xz
linux-36594b317c656bec8f968db93701d2cb9bc9155c.zip
vsprintf: Prevent crash when dereferencing invalid pointers for %pD
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. Link: http://lkml.kernel.org/r/20190809012457.56685-1-justin.he@arm.com Fixes: 3e5903eb9cff ("vsprintf: Prevent crash when dereferencing invalid pointers") To: Geert Uytterhoeven <geert+renesas@glider.be> To: Thomas Gleixner <tglx@linutronix.de> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: linux-kernel@vger.kernel.org Cc: Kees Cook <keescook@chromium.org> Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org> Cc: Shuah Khan <shuah@kernel.org> Cc: "Tobin C. Harding" <tobin@kernel.org> Signed-off-by: Jia He <justin.he@arm.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions