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
  • lib
  • dump_stack.c
Find file BlameHistoryPermalink
  • John Ogness's avatar
    dump_stack: Do not get cpu_sync for panic CPU · 7412dc6d
    John Ogness authored Feb 07, 2024
    dump_stack() is called in panic(). If for some reason another CPU
    is holding the printk_cpu_sync and is unable to release it, the
    panic CPU will be unable to continue and print the stacktrace.
    
    Since non-panic CPUs are not allowed to store new printk messages
    anyway, there is no need to synchronize the stacktrace output in
    a panic situation.
    
    For the panic CPU, do not get the printk_cpu_sync because it is
    not needed and avoids a potential deadlock scenario in panic().
    
    Link: https://lore.kernel.org/lkml/ZcIGKU8sxti38Kok@alley
    
    
    Signed-off-by: default avatarJohn Ogness <john.ogness@linutronix.de>
    Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
    Link: https://lore.kernel.org/r/20240207134103.1357162-15-john.ogness@linutronix.de
    
    
    Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
    7412dc6d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7