KCSAN: data-race in cpuhp_bringup_ap / cpuhp_should_run

Status: moderation: reported on 2026/08/27 16:04
Subsystems: pm
Labels: race:benign
[Documentation on labels]
Reported-by: syzbot+7a8157b6d979dc7367e8@syzkaller.appspotmail.com
First crash: 9h04m, last: 9h04m
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
fe40ce86 assessment-kcsan Benign: ✅ KCSAN: data-race in cpuhp_bringup_ap / cpuhp_should_run 2026/08/27 16:04 2026/08/27 16:04 2026/08/27 16:38 bd6de8ec

Sample crash report:
==================================================================
BUG: KCSAN: data-race in cpuhp_bringup_ap / cpuhp_should_run

write to 0xffff888237d17c88 of 1 bytes by task 4598 on cpu 0:
 __cpuhp_kick_ap kernel/cpu.c:777 [inline]
 cpuhp_kick_ap kernel/cpu.c:789 [inline]
 cpuhp_bringup_ap+0x2c7/0x4e0 kernel/cpu.c:856
 cpuhp_invoke_callback+0x3c1/0x980 kernel/cpu.c:194
 __cpuhp_invoke_callback_range kernel/cpu.c:972 [inline]
 cpuhp_invoke_callback_range kernel/cpu.c:996 [inline]
 cpuhp_up_callbacks kernel/cpu.c:1027 [inline]
 _cpu_up+0x284/0x470 kernel/cpu.c:1674
 thaw_secondary_cpus+0x12a/0x320 kernel/cpu.c:1968
 suspend_enable_secondary_cpus include/linux/cpu.h:160 [inline]
 pm_sleep_enable_secondary_cpus kernel/power/power.h:350 [inline]
 suspend_enter kernel/power/suspend.c:483 [inline]
 suspend_devices_and_enter+0xaf2/0x10d0 kernel/power/suspend.c:533
 enter_state kernel/power/suspend.c:618 [inline]
 pm_suspend+0x541/0x980 kernel/power/suspend.c:644
 state_store+0x1ba/0x220 kernel/power/main.c:819
 kobj_attr_store+0x4a/0x70 lib/kobject.c:842
 sysfs_kf_write+0xfe/0x120 fs/sysfs/file.c:145
 kernfs_fop_write_iter+0x1d2/0x2e0 fs/kernfs/file.c:345
 new_sync_write fs/read_write.c:595 [inline]
 vfs_write+0x57f/0x9a0 fs/read_write.c:687
 ksys_write+0xdc/0x1a0 fs/read_write.c:739
 __do_sys_write fs/read_write.c:750 [inline]
 __se_sys_write fs/read_write.c:747 [inline]
 __x64_sys_write+0x40/0x50 fs/read_write.c:747
 x64_sys_call+0x154e/0x2550 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888237d17c88 of 1 bytes by task 21 on cpu 1:
 cpuhp_should_run+0x1e/0x30 kernel/cpu.c:1048
 smpboot_thread_fn+0x2b4/0x520 kernel/smpboot.c:154
 kthread+0x223/0x270 kernel/kthread.c:436
 ret_from_fork+0x146/0x330 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 21 Comm: cpuhp/1 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/27 16:04 upstream 73e3f0710014 69a01293 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in cpuhp_bringup_ap / cpuhp_should_run
* Struck through repros no longer work on HEAD.