syzbot


KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote

Status: moderation: reported on 2024/03/12 20:56
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+e98be18c1a1b038b3b5a@syzkaller.appspotmail.com
First crash: 276d, last: 5h13m

Sample crash report:
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
==================================================================
BUG: KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote

write to 0xffff888237c205dc of 1 bytes by task 0 on cpu 0:
 __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:2380
 tick_nohz_restart_sched_tick+0x22/0x110 kernel/time/tick-sched.c:1096
 tick_nohz_idle_update_tick kernel/time/tick-sched.c:1427 [inline]
 tick_nohz_idle_exit+0xfe/0x1d0 kernel/time/tick-sched.c:1470
 do_idle+0x1eb/0x230 kernel/sched/idle.c:338
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:423
 rest_init+0xef/0xf0 init/main.c:747
 start_kernel+0x586/0x5e0 init/main.c:1102
 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:561
 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:950
 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 23 Comm: ksoftirqd/1 Not tainted 6.13.0-rc2-syzkaller-00192-g243f750a2df0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================
net_ratelimit: 16008 callbacks suppressed
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
net_ratelimit: 16390 callbacks suppressed
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:1d, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)
bridge0: received packet on bond0 with own address as source address (addr:aa:aa:aa:aa:aa:0c, vlan:0)

Crashes (337):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/14 03:13 upstream 243f750a2df0 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/13 02:28 upstream 150b567e0d57 530e80f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/12 01:46 upstream 231825b2e1ff 6f1b0fa8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/12 00:32 upstream 231825b2e1ff ff949d25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/11 17:19 upstream f92f4749861b ff949d25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/09 15:25 upstream fac04efc5c79 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/09 00:17 upstream 62b5a46999c7 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/08 01:00 upstream 7503345ac5f5 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/06 04:28 upstream 5076001689e4 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/05 10:00 upstream feffde684ac2 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/04 11:26 upstream feffde684ac2 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/03 21:11 upstream ceb8bf2ceaa7 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/12/01 05:34 upstream bcc8eda6d349 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/28 21:42 upstream 7af08b57bcb9 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/28 03:08 upstream 7d4050728c83 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/27 12:28 upstream aaf20f870da0 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/26 22:12 upstream 445d9f05fa14 e9a9a9f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/26 07:59 upstream 2c22dc1ee3a1 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/24 16:49 upstream 9f16d5e6f220 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/23 01:02 upstream 06afb0f36106 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/22 06:40 upstream 28eb75e178d3 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/22 00:20 upstream 43fb83c17ba2 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/21 03:56 upstream 8f7c8b88bda4 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/20 20:53 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/20 15:18 upstream bf9aa14fc523 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/20 09:34 upstream bf9aa14fc523 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/19 19:13 upstream 158f238aa69d 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/18 20:18 upstream 23acd177540d e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/18 11:27 upstream adc218676eef e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/18 00:55 upstream adc218676eef cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/17 11:25 upstream 4a5df3796467 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/16 08:52 upstream e8bdb3c8be08 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/15 19:04 upstream cfaaa7d010d1 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/15 05:06 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/14 22:19 upstream cfaaa7d010d1 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/14 00:41 upstream 0a9b9d17f3a7 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/13 12:47 upstream f1b785f4c787 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/13 09:52 upstream f1b785f4c787 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/10 19:19 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/09 23:08 upstream de2f378f2b77 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/08 19:39 upstream f1dce1f09380 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/08 17:54 upstream 906bd684e4b1 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/08 01:19 upstream 906bd684e4b1 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/07 11:49 upstream ff7afaeca1a1 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/06 16:16 upstream 2e1b3cc9d7f7 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/04 17:24 upstream 59b723cd2adb 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/04 09:08 upstream 59b723cd2adb f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/11/03 22:37 upstream a33ab3f94f51 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/03/12 20:55 upstream 855684c7d938 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
* Struck through repros no longer work on HEAD.