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: 35d, last: 16h51m

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

write to 0xffff888237c205e4 of 1 bytes by task 0 on cpu 0:
 __tmigr_cpu_activate+0x55/0x1f0 kernel/time/timer_migration.c:682
 tmigr_cpu_activate+0x8a/0xc0 kernel/time/timer_migration.c:705
 timer_clear_idle+0x28/0x100 kernel/time/timer.c:2380
 tick_nohz_restart_sched_tick+0x22/0x110 kernel/time/tick-sched.c:1095
 tick_nohz_idle_update_tick kernel/time/tick-sched.c:1440 [inline]
 tick_nohz_idle_exit+0xfe/0x1d0 kernel/time/tick-sched.c:1483
 do_idle+0x1ee/0x230 kernel/sched/idle.c:345
 cpu_startup_entry+0x25/0x30 kernel/sched/idle.c:430
 rest_init+0xef/0xf0 init/main.c:737
 start_kernel+0x57c/0x5e0 init/main.c:1079
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:507
 x86_64_start_kernel+0x94/0xa0 arch/x86/kernel/head64.c:488
 common_startup_64+0x12c/0x137

read to 0xffff888237c205e4 of 1 bytes by interrupt on cpu 1:
 tmigr_next_groupevt kernel/time/timer_migration.c:569 [inline]
 tmigr_next_expired_groupevt kernel/time/timer_migration.c:593 [inline]
 tmigr_handle_remote_up kernel/time/timer_migration.c:1023 [inline]
 __walk_groups kernel/time/timer_migration.c:488 [inline]
 tmigr_handle_remote+0x26e/0x910 kernel/time/timer_migration.c:1091
 run_timer_softirq+0x5f/0x70 kernel/time/timer.c:2452
 __do_softirq+0xc8/0x285 kernel/softirq.c:554
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:633 [inline]
 irq_exit_rcu+0x3c/0x90 kernel/softirq.c:645
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x73/0x80 arch/x86/kernel/apic/apic.c:1043
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
 kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705
 ext4_map_blocks+0xe7/0xf50 fs/ext4/inode.c:506
 ext4_readdir+0x5e0/0x1ad0 fs/ext4/dir.c:181
 iterate_dir+0x12c/0x310 fs/readdir.c:110
 __do_sys_getdents64 fs/readdir.c:409 [inline]
 __se_sys_getdents64+0x88/0x1a0 fs/readdir.c:394
 __x64_sys_getdents64+0x43/0x50 fs/readdir.c:394
 x64_sys_call+0x2997/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:218
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3923 Comm: syz-executor.2 Tainted: G        W          6.9.0-rc4-syzkaller-00031-g96fca68c4fbf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (49):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 04:47 upstream 96fca68c4fbf 0d592ce4 .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/04/15 01:54 upstream 399f4dae683a c8349e48 .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/04/14 09:05 upstream 7efd0a74039f c8349e48 .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/04/13 07:27 upstream 8f2c057754b2 c8349e48 .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/04/12 17:26 upstream 5939d45155bb c8349e48 .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/04/11 21:09 upstream e8c39d0f57f3 95ed9ece .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/04/10 17:59 upstream 2c71fdf02a95 4320ec32 .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/04/09 21:29 upstream 20cb38a7af88 171ec371 .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/04/09 21:27 upstream 20cb38a7af88 171ec371 .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/04/09 02:11 upstream 20cb38a7af88 f3234354 .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/04/08 20:40 upstream fec50db7033e 53df08b6 .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/04/08 04:27 upstream 9fe30842a90b ca620dd8 .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/04/06 14:12 upstream 104db052b62d ca620dd8 .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/04/05 22:08 upstream 8cb4a9a82b21 77230c29 .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/04/05 04:19 upstream c88b9b4cde17 0ee3535e .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/04/04 14:22 upstream c85af715cac0 0ee3535e .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/04/04 05:06 upstream c85af715cac0 51c4dcff .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/04/03 19:56 upstream 3e92c1e6cd87 51c4dcff .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/04/03 10:38 upstream b1e6ec0a0fd0 7925100d .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/04/03 00:28 upstream b1e6ec0a0fd0 eb2966c4 .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/04/01 14:53 upstream 39cd87c4eb2b 6baf5069 .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/04/01 00:16 upstream 18737353cca0 6baf5069 .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/30 15:19 upstream 486291a0e624 6baf5069 .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/29 09:26 upstream 317c7bc0ef03 c52bcb23 .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/28 16:44 upstream 8d025e2092e2 e91187ee .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/28 09:36 upstream 8d025e2092e2 120789fd .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/28 03:36 upstream 498e47cd1d1f 120789fd .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/27 01:55 upstream 7033999ecd7b 454571b6 .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/26 03:03 upstream 928a87efa423 bcd9b39f .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/25 16:54 upstream 4cece7649650 0ea90952 .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/25 04:44 upstream 5e74df2f8f15 0ea90952 .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/23 19:54 upstream 484193fecd2b 0ea90952 .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/23 14:10 upstream bfa8f18691ed 0ea90952 .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/22 17:45 upstream 8e938e398669 4b6cdce6 .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/22 02:52 upstream ebc9bee8814d 7a239ce7 .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/20 15:22 upstream a4145ce1e7bc 5b7d42ae .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/20 09:00 upstream a4145ce1e7bc a485f239 .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/19 13:17 upstream b3603fcb79b1 e104824c .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/19 11:45 upstream b3603fcb79b1 baa80228 .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/18 18:45 upstream f6cef5f8c37f baa80228 .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/17 09:53 upstream 741e9d668aa5 d615901c .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/17 02:11 upstream 66a27abac311 d615901c .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/16 05:46 upstream 82affc97affb d615901c .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/15 13:03 upstream e5eb28f6d1af d615901c .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/15 07:24 upstream fe46a7dd189e d615901c .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/13 19:56 upstream 61387b8dcf1d f919f202 .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/13 19:50 upstream 61387b8dcf1d f919f202 .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.