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
  • linux
  • arch
  • x86
  • kernel
  • dumpstack.c
Find file BlameHistoryPermalink
  • Thomas Gleixner's avatar
    x86/dumpstack: Dump user space code correctly again · d181d2da
    Thomas Gleixner authored Jul 22, 2020
    H.J. reported that post 5.7 a segfault of a user space task does not longer
    dump the Code bytes when /proc/sys/debug/exception-trace is enabled. It
    prints 'Code: Bad RIP value.' instead.
    
    This was broken by a recent change which made probe_kernel_read() reject
    non-kernel addresses.
    
    Update show_opcodes() so it retrieves user space opcodes via
    copy_from_user_nmi().
    
    Fixes: 98a23609
    
     ("maccess: always use strict semantics for probe_kernel_read")
    Reported-by: default avatarH.J. Lu <hjl.tools@gmail.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Link: https://lkml.kernel.org/r/87h7tz306w.fsf@nanos.tec.linutronix.de
    d181d2da
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7