aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorJia He <[email protected]>2019-08-09 09:24:56 +0800
committerPetr Mladek <[email protected]>2019-08-15 16:40:10 +0200
commit36594b317c656bec8f968db93701d2cb9bc9155c (patch)
tree4cebb6b88c3d8f37dc076b8bd219ec03f21f974f /scripts/bpf_helpers_doc.py
parent7011b7e1b702cc76f9e969b41d9a95969f2aecaa (diff)
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 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions