syzbot


KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote

Status: moderation: reported on 2024/03/16 01:56
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+9573fbf76e97a4b394fa@syzkaller.appspotmail.com
First crash: 250d, last: 2d16h

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote

write to 0xffff888237c205dc of 1 bytes by task 0 on cpu 0:
 __tmigr_cpu_deactivate+0xa1/0x410 kernel/time/timer_migration.c:1320
 tmigr_cpu_deactivate+0x66/0x180 kernel/time/timer_migration.c:1346
 timer_use_tmigr kernel/time/timer.c:2194 [inline]
 __get_next_timer_interrupt+0x137/0x530 kernel/time/timer.c:2269
 timer_base_try_to_set_idle+0x54/0x60 kernel/time/timer.c:2358
 tick_nohz_stop_tick kernel/time/tick-sched.c:993 [inline]
 tick_nohz_idle_stop_tick+0x15b/0x650 kernel/time/tick-sched.c:1232
 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+0x586/0x5e0 init/main.c:1105
 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

read to 0xffff888237c205dc of 1 bytes by interrupt on cpu 1:
 tmigr_next_groupevt kernel/time/timer_migration.c:567 [inline]
 tmigr_next_expired_groupevt kernel/time/timer_migration.c:591 [inline]
 tmigr_handle_remote_up kernel/time/timer_migration.c:1014 [inline]
 __walk_groups kernel/time/timer_migration.c:533 [inline]
 tmigr_handle_remote+0x26e/0x940 kernel/time/timer_migration.c:1080
 run_timer_softirq+0x5f/0x70 kernel/time/timer.c:2453
 handle_softirqs+0xbf/0x280 kernel/softirq.c:554
 __do_softirq kernel/softirq.c:588 [inline]
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:637 [inline]
 irq_exit_rcu+0x3e/0x90 kernel/softirq.c:649
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x73/0x80 arch/x86/kernel/apic/apic.c:1049
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
 native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:106 [inline]
 acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:111
 acpi_idle_do_entry+0x1d/0x30 drivers/acpi/processor_idle.c:568
 acpi_idle_enter+0x96/0xb0 drivers/acpi/processor_idle.c:702
 cpuidle_enter_state+0xc5/0x260 drivers/cpuidle/cpuidle.c:264
 cpuidle_enter+0x40/0x70 drivers/cpuidle/cpuidle.c:385
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:230 [inline]
 do_idle+0x195/0x230 kernel/sched/idle.c:326
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:424
 start_secondary+0x96/0xa0 arch/x86/kernel/smpboot.c:314
 common_startup_64+0x12c/0x137

value changed: 0x01 -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Tainted: G        W          6.12.0-syzkaller #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (85):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/18 14:20 upstream adc218676eef e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/17 01:39 upstream b5a24181e461 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/16 11:06 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/15 21:46 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/15 01:44 upstream cfaaa7d010d1 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/14 01:04 upstream 0a9b9d17f3a7 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/11 11:53 upstream 2d5404caa8c7 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/11 08:27 upstream 2d5404caa8c7 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/10 11:28 upstream de2f378f2b77 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/08 02:45 upstream 906bd684e4b1 179b040e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/07 13:37 upstream ff7afaeca1a1 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/06 17:06 upstream 2e1b3cc9d7f7 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/06 02:49 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/05 12:50 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/04 23:46 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/04 13:41 upstream 59b723cd2adb f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/02 07:17 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/11/01 04:31 upstream 5635f189425e 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/31 19:21 upstream 0fc810ae3ae1 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/31 00:41 upstream 4236f913808c 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/30 16:21 upstream c1e939a21eb1 fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/30 08:01 upstream c1e939a21eb1 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/29 21:22 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/28 20:19 upstream 819837584309 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/28 09:48 upstream 819837584309 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/28 00:49 upstream 284a2f899676 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/26 03:51 upstream 850925a8133c 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/25 11:50 upstream ae90f6a6170d 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/24 23:50 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/23 11:29 upstream c2ee9f594da8 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/22 09:21 upstream d12937763990 a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/21 23:09 upstream d12937763990 f1e4447c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/21 08:52 upstream 42f7652d3eb5 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/17 13:18 upstream c964ced77262 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/16 07:05 upstream 2f87d0916ce0 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/15 13:04 upstream eca631b8fe80 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/14 13:02 upstream 6485cf5ea253 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/13 07:22 upstream 7234e2ea0edd 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/10/06 09:36 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/09/30 02:51 upstream e7ed34365879 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/09/24 04:47 upstream 18ba6034468e 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/09/19 05:53 upstream 4a39ac5b7d62 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/09/18 21:08 upstream bdf56c7580d2 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/09/08 08:02 upstream d1f2d51b711a 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/08/11 05:33 upstream 34ac1e82e5a7 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/08/03 10:09 upstream 1c4246294c98 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/12 09:47 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/08 20:19 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/07 01:39 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/06 02:55 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/02 19:54 upstream 49a73b1652c5 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/05/01 21:04 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/26 12:20 upstream c942a0cd3603 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/23 16:08 upstream 71b1543c83d6 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/20 23:37 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/14 08:47 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/12 17:42 upstream 5939d45155bb c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/11 04:33 upstream 9875c0beb8ad 33b9e058 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/10 11:13 upstream 2c71fdf02a95 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/04/09 20:28 upstream 20cb38a7af88 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/03/26 13:39 upstream 928a87efa423 bcd9b39f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/03/20 16:20 upstream a4145ce1e7bc 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/03/17 10:41 upstream 741e9d668aa5 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/03/16 17:01 upstream 66a27abac311 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
2024/03/16 01:55 upstream 82affc97affb d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_deactivate / tmigr_handle_remote
* Struck through repros no longer work on HEAD.