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
  • kernel
  • cpu.c
Find file BlameHistoryPermalink
  • Steven Price's avatar
    cpu/hotplug: Remove the 'cpu' member of cpuhp_cpu_state · b7ba6d8d
    Steven Price authored Apr 11, 2022
    Currently the setting of the 'cpu' member of struct cpuhp_cpu_state in
    cpuhp_create() is too late as it is used earlier in _cpu_up().
    
    If kzalloc_node() in __smpboot_create_thread() fails then the rollback will
    be done with st->cpu==0 causing CPU0 to be erroneously set to be dying,
    causing the scheduler to get mightily confused and throw its toys out of
    the pram.
    
    However the cpu number is actually available directly, so simply remove
    the 'cpu' member and avoid the problem in the first place.
    
    Fixes: 2ea46c6f
    
     ("cpumask/hotplug: Fix cpu_dying() state tracking")
    Signed-off-by: default avatarSteven Price <steven.price@arm.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Link: https://lore.kernel.org/r/20220411152233.474129-2-steven.price@arm.com
    b7ba6d8d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7