Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • lib
  • vsprintf.c
Find file BlameHistoryPermalink
  • Jia He's avatar
    vsprintf: Prevent crash when dereferencing invalid pointers for %pD · 36594b31
    Jia He authored Aug 09, 2019
    Commit 3e5903eb ("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: 3e5903eb
    
     ("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: default avatarJia He <justin.he@arm.com>
    Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
    Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
    Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
    36594b31
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7