syzbot


KCSAN: data-race in bringup_cpu / cpuhp_should_run

Status: auto-closed as invalid on 2021/09/02 23:36
Subsystems: pm
[Documentation on labels]
First crash: 1059d, last: 1037d

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

write to 0xffff888237d17218 of 1 bytes by task 5181 on cpu 0:
 __cpuhp_kick_ap kernel/cpu.c:526 [inline]
 cpuhp_kick_ap kernel/cpu.c:537 [inline]
 bringup_wait_for_ap kernel/cpu.c:571 [inline]
 bringup_cpu+0x2cc/0x560 kernel/cpu.c:591
 cpuhp_invoke_callback+0x3ea/0x870 kernel/cpu.c:179
 cpuhp_invoke_callback_range kernel/cpu.c:654 [inline]
 cpuhp_up_callbacks kernel/cpu.c:682 [inline]
 _cpu_up+0x2bf/0x4d0 kernel/cpu.c:1301
 thaw_secondary_cpus+0x22b/0x2e0 kernel/cpu.c:1487
 suspend_enable_secondary_cpus include/linux/cpu.h:167 [inline]
 suspend_enter+0x512/0x8f0 kernel/power/suspend.c:455
 suspend_devices_and_enter+0x1cb/0x500 kernel/power/suspend.c:505
 enter_state+0x274/0x530 kernel/power/suspend.c:586
 pm_suspend+0x4b/0x130 kernel/power/suspend.c:613
 state_store+0x1f2/0x210 kernel/power/main.c:658
 kobj_attr_store+0x40/0x60 lib/kobject.c:856
 sysfs_kf_write+0xa6/0xc0 fs/sysfs/file.c:139
 kernfs_fop_write_iter+0x1d3/0x2d0 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:2114 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_iter_write+0x4c/0x70 fs/read_write.c:907
 iter_file_splice_write+0x40a/0x750 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0xf5/0x170 fs/splice.c:979
 do_sendfile+0x773/0xda0 fs/read_write.c:1260
 __do_sys_sendfile64 fs/read_write.c:1319 [inline]
 __se_sys_sendfile64 fs/read_write.c:1311 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1311
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888237d17218 of 1 bytes by task 14 on cpu 1:
 cpuhp_should_run+0x1e/0x30 kernel/cpu.c:708
 smpboot_thread_fn+0x258/0x3f0 kernel/smpboot.c:159
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14 Comm: cpuhp/1 Not tainted 5.13.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
kvm-guest: stealtime: cpu 1, msr 237d170c0
kvm-guest: stealtime: cpu 1, msr 237d170c0
kvm-guest: stealtime: cpu 1, msr 237d170c0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/23 06:44 upstream 0c18f29aae7c aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
2021/06/09 03:36 upstream 4c8684fe555e 5c2fe346 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
2021/06/07 18:24 upstream 614124bea77e e59537be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
2021/06/06 04:18 upstream f5b6eb1e0182 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
2021/06/06 04:15 upstream f5b6eb1e0182 500c2339 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
2021/06/01 05:06 upstream c2131f7e73c9 032639db .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in bringup_cpu / cpuhp_should_run
* Struck through repros no longer work on HEAD.