Files
Linux/lib
Jia He 36594b317c vsprintf: Prevent crash when dereferencing invalid pointers for %pD
Commit 3e5903eb9c ("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: 3e5903eb9c ("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]>
2019-08-15 16:40:10 +02:00
..
2018-08-22 10:52:48 -07:00
2018-10-12 09:17:46 +02:00
2018-08-16 12:14:42 -07:00
2018-08-22 10:52:48 -07:00
…
…
…
…
…
2019-03-12 10:04:02 -07:00
2017-02-24 17:46:57 -08:00
2018-10-16 13:45:44 +02:00
2019-07-01 11:57:12 -06:00
2018-06-27 18:58:49 +03:00
2018-10-15 16:31:29 -04:00
2019-06-02 23:00:24 -04:00
2019-05-06 11:12:09 -07:00
2017-08-15 09:02:07 -07:00