syzbot


KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events

Status: moderation: reported on 2024/05/16 13:31
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+4dd1dd2e87e81f3d1b95@syzkaller.appspotmail.com
First crash: 119d, last: 4d18h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events

write to 0xffff888237d205a4 of 1 bytes by task 0 on cpu 1:
 __tmigr_cpu_activate+0x55/0x200 kernel/time/timer_migration.c:676
 tmigr_cpu_activate+0x8a/0xc0 kernel/time/timer_migration.c:699
 timer_clear_idle+0x28/0x100 kernel/time/timer.c:2379
 tick_nohz_restart_sched_tick+0x22/0x110 kernel/time/tick-sched.c:1095
 tick_nohz_idle_update_tick kernel/time/tick-sched.c:1426 [inline]
 tick_nohz_idle_exit+0xfe/0x1d0 kernel/time/tick-sched.c:1469
 do_idle+0x1ee/0x230 kernel/sched/idle.c:339
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:424
 start_secondary+0x94/0xa0 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x12c/0x137

read to 0xffff888237d205a4 of 1 bytes by task 0 on cpu 0:
 tmigr_next_groupevt kernel/time/timer_migration.c:567 [inline]
 tmigr_next_groupevt_expires kernel/time/timer_migration.c:609 [inline]
 tmigr_update_events+0x41d/0x5d0 kernel/time/timer_migration.c:840
 tmigr_inactive_up kernel/time/timer_migration.c:1302 [inline]
 __walk_groups kernel/time/timer_migration.c:533 [inline]
 walk_groups kernel/time/timer_migration.c:546 [inline]
 __tmigr_cpu_deactivate+0x2b1/0x410 kernel/time/timer_migration.c:1322
 tmigr_cpu_deactivate+0x66/0x180 kernel/time/timer_migration.c:1346
 timer_use_tmigr kernel/time/timer.c:2192 [inline]
 __get_next_timer_interrupt+0x137/0x530 kernel/time/timer.c:2267
 timer_base_try_to_set_idle+0x54/0x60 kernel/time/timer.c:2356
 tick_nohz_stop_tick kernel/time/tick-sched.c:987 [inline]
 tick_nohz_idle_stop_tick+0x15b/0x650 kernel/time/tick-sched.c:1226
 cpuidle_idle_call kernel/sched/idle.c:226 [inline]
 do_idle+0x178/0x230 kernel/sched/idle.c:326
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:424
 rest_init+0xef/0xf0 init/main.c:747
 start_kernel+0x581/0x5e0 init/main.c:1103
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:507
 x86_64_start_kernel+0x9a/0xa0 arch/x86/kernel/head64.c:488
 common_startup_64+0x12c/0x137

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G        W          6.11.0-rc6-syzkaller-00326-gd1f2d51b711a #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/08 11:56 upstream d1f2d51b711a 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/09/04 09:20 upstream 88fac17500f4 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/09/03 20:55 upstream 88fac17500f4 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/09/03 07:14 upstream 67784a74e258 8045124c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/09/02 16:31 upstream 67784a74e258 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/09/01 03:36 upstream e8784b0aef62 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/08/23 08:30 upstream aa0743a22936 ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/08/06 00:30 upstream b446a2dae984 e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/31 07:49 upstream 22f546873149 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/28 17:09 upstream 5437f30d3458 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/28 05:14 upstream ff30564411ff 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/27 10:10 upstream 3a7e02c040b1 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/24 11:51 upstream 786c8248dbd3 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/22 16:22 upstream 933069701c1b df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/16 16:44 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/13 21:06 upstream d0d0cd380055 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/13 04:50 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/09 13:41 upstream 4376e966ecb7 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/09 13:39 upstream 4376e966ecb7 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/05 20:38 upstream d270dd21bee0 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/04 05:00 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/07/01 11:58 upstream 22a40d14b572 757f06b1 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/18 02:05 upstream 6226e74900d7 ce6011bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/17 11:40 upstream 6ba59ff42279 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/16 05:28 upstream a3e18a540541 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/15 06:10 upstream c286c21ff942 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/14 17:24 upstream d20f6b3d747c 8d849073 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/12 21:02 upstream cea2a26553ac f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/06/06 01:43 upstream 2df0193e62cf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/05/31 23:23 upstream d8ec19857b09 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/05/21 07:30 upstream 8f6a15f095a6 4c0d3ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
2024/05/16 13:30 upstream 3c999d1ae3c7 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_update_events
* Struck through repros no longer work on HEAD.