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
  • kernel
  • cpu.c
Find file BlameHistoryPermalink
  • Peter Zijlstra's avatar
    cpumask/hotplug: Fix cpu_dying() state tracking · 2ea46c6f
    Peter Zijlstra authored Apr 20, 2021
    
    
    Vincent reported that for states with a NULL startup/teardown function
    we do not call cpuhp_invoke_callback() (because there is none) and as
    such we'll not update the cpu_dying() state.
    
    The stale cpu_dying() can eventually lead to triggering BUG().
    
    Rectify this by updating cpu_dying() in the exact same places the
    hotplug machinery tracks its directional state, namely
    cpuhp_set_state() and cpuhp_reset_state().
    
    Reported-by: default avatarVincent Donnefort <vincent.donnefort@arm.com>
    Suggested-by: default avatarVincent Donnefort <vincent.donnefort@arm.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: default avatarVincent Donnefort <vincent.donnefort@arm.com>
    Reviewed-by: default avatarValentin Schneider <valentin.schneider@arm.com>
    Link: https://lkml.kernel.org/r/YH7r+AoQEReSvxBI@hirez.programming.kicks-ass.net
    2ea46c6f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7