aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorJia He <[email protected]>2019-08-09 01:24:56 +0000
committerPetr Mladek <[email protected]>2019-08-15 14:40:10 +0000
commit36594b317c656bec8f968db93701d2cb9bc9155c (patch)
tree4cebb6b88c3d8f37dc076b8bd219ec03f21f974f /lib/test_printf.c
parentMerge tag 'printk-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/p... (diff)
downloadkernel-36594b317c656bec8f968db93701d2cb9bc9155c.tar.gz
kernel-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/[email protected] Fixes: 3e5903eb9cff ("vsprintf: Prevent crash when dereferencing invalid pointers") To: Geert Uytterhoeven <[email protected]> To: Thomas Gleixner <[email protected]> To: Andy Shevchenko <[email protected]> To: [email protected] Cc: Kees Cook <[email protected]> Cc: "Steven Rostedt (VMware)" <[email protected]> Cc: Shuah Khan <[email protected]> Cc: "Tobin C. Harding" <[email protected]> Signed-off-by: Jia He <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions