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: 125d, last: 9h38m

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

write to 0xffff888237d205e4 of 1 bytes by task 0 on cpu 1:
 __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:2379
 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
 start_secondary+0x94/0xa0 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x12c/0x137

read to 0xffff888237d205e4 of 1 bytes by interrupt on cpu 0:
 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:2451
 handle_softirqs+0xc3/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: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
 console_flush_all+0x4fc/0x710
 console_unlock+0x7b/0x280 kernel/printk/printk.c:3048
 vprintk_emit+0x3ed/0x5e0 kernel/printk/printk.c:2348
 dev_vprintk_emit+0x1df/0x210 drivers/base/core.c:4909
 dev_printk_emit+0x82/0xb0 drivers/base/core.c:4920
 __netdev_printk+0x352/0x3e0 net/core/dev.c:11625
 netdev_info+0x99/0xc0 net/core/dev.c:11680
 nsim_udp_tunnel_unset_port+0x1bc/0x1e0 drivers/net/netdevsim/udp_tunnels.c:64
 udp_tunnel_nic_device_sync_by_port net/ipv4/udp_tunnel_nic.c:246 [inline]
 __udp_tunnel_nic_device_sync+0x57b/0x9e0 net/ipv4/udp_tunnel_nic.c:289
 udp_tunnel_nic_flush+0x22c/0x320 net/ipv4/udp_tunnel_nic.c:670
 udp_tunnel_nic_unregister net/ipv4/udp_tunnel_nic.c:864 [inline]
 udp_tunnel_nic_netdevice_event+0x7b9/0xc80 net/ipv4/udp_tunnel_nic.c:904
 notifier_call_chain kernel/notifier.c:93 [inline]
 raw_notifier_call_chain+0x6f/0x1d0 kernel/notifier.c:461
 call_netdevice_notifiers_info+0xae/0x100 net/core/dev.c:1992
 call_netdevice_notifiers_extack net/core/dev.c:2030 [inline]
 call_netdevice_notifiers net/core/dev.c:2044 [inline]
 unregister_netdevice_many_notify+0x828/0xf00 net/core/dev.c:11219
 unregister_netdevice_many net/core/dev.c:11277 [inline]
 unregister_netdevice_queue+0x1f4/0x220 net/core/dev.c:11156
 unregister_netdevice include/linux/netdevice.h:3119 [inline]
 nsim_destroy+0xa0/0x2f0 drivers/net/netdevsim/netdev.c:778
 __nsim_dev_port_del+0xcd/0x100 drivers/net/netdevsim/dev.c:1425
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1437 [inline]
 nsim_dev_reload_destroy+0x1a6/0x2d0 drivers/net/netdevsim/dev.c:1658
 nsim_dev_reload_down+0x77/0xa0 drivers/net/netdevsim/dev.c:965
 devlink_reload+0xab/0x5a0 net/devlink/dev.c:461
 devlink_pernet_pre_exit+0xd7/0x220 net/devlink/core.c:509
 ops_pre_exit_list net/core/net_namespace.c:163 [inline]
 cleanup_net+0x332/0x830 net/core/net_namespace.c:620
 process_one_work kernel/workqueue.c:3248 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3329
 worker_thread+0x526/0x720 kernel/workqueue.c:3409
 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: 0 PID: 28 Comm: kworker/u8:1 Not tainted 6.10.0-syzkaller-00017-g5e0497553643 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: netns cleanup_net
==================================================================

Crashes (171):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/16 07:11 upstream 5e0497553643 e8709b21 .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/07/15 14:43 upstream 0c3836482481 c605e6a2 .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/07/15 02:58 upstream 0c3836482481 eaeb5c15 .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/07/14 14:42 upstream 4d145e3f830b eaeb5c15 .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/07/12 11:30 upstream 43db1e03c086 eaeb5c15 .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/07/11 20:02 upstream 8a18fda0febb eaeb5c15 .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/07/11 02:43 upstream 34afb82a3c67 6f7fa383 .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/07/10 14:02 upstream 34afb82a3c67 bc144f9a .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/07/09 13:45 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_handle_remote
2024/07/07 23:28 upstream c6653f49e4fd 2a40360c .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/07/06 12:07 upstream 1dd28064d416 2a40360c .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/07/03 09:19 upstream e9d22f7a6655 1ecfa2d8 .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/07/02 20:20 upstream 1dfe225e9af5 07f0a0a0 .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/07/01 15:12 upstream 22a40d14b572 b294e901 .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/07/01 10:56 upstream 22a40d14b572 757f06b1 .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/06/29 19:47 upstream de0a9f448633 757f06b1 .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/06/28 07:42 upstream 5bbd9b249880 6ef39602 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/06/28 05:04 upstream 66e55ff12e73 6ef39602 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __tmigr_cpu_activate / tmigr_handle_remote
2024/06/27 21:05 upstream 66e55ff12e73 6ef39602 .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/06/27 16:05 upstream afcd48134c58 6ef39602 .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/06/26 19:00 upstream 55027e689933 c6d33a01 .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/06/25 19:07 upstream 55027e689933 04bd2a30 .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/06/24 10:13 upstream f2661062f16b edc5149a .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/06/23 12:18 upstream 563a50672d8a edc5149a .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/06/21 20:02 upstream 66cc544fd75c edc5149a .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/06/21 14:13 upstream 50736169ecc8 dac2aa43 .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/06/19 19:17 upstream e5b3efbe1ab1 41b7e219 .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/06/18 22:39 upstream 3d54351c64e8 639d6cdf .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/06/18 07:50 upstream 14d7c92f8df9 ce6011bc .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/06/16 21:54 upstream b5beaa44747b f429ab00 .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/06/15 21:41 upstream 08a6b55aa0c6 f429ab00 .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/06/15 20:20 upstream 08a6b55aa0c6 f429ab00 .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/06/15 11:42 upstream 44ef20baed8e f429ab00 .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/06/15 03:17 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_handle_remote
2024/06/12 21:03 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_handle_remote
2024/06/11 11:12 upstream 83a7eefedc9b b7d9eb04 .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/06/10 14:18 upstream 83a7eefedc9b 048c640a .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/06/10 03:15 upstream 83a7eefedc9b 82c05ab8 .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/06/08 12:02 upstream dc772f8237f9 82c05ab8 .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/06/08 01:21 upstream 96e09b8f8166 82c05ab8 .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/06/07 07:36 upstream 8a92980606e3 121701b6 .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/06/07 03:53 upstream d30d0e49da71 121701b6 .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.