syzbot


KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb (5)

Status: upstream: reported on 2024/10/22 10:07
Subsystems: virt
[Documentation on labels]
Reported-by: syzbot+9d46c74b27b961b244a9@syzkaller.appspotmail.com
First crash: 345d, last: 1d20h
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly virt report (Feb 2025) 0 (1) 2025/02/25 15:14
[syzbot] Monthly virt report (Jan 2025) 0 (1) 2025/01/14 08:53
[syzbot] [virt?] KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb (5) 1 (2) 2024/10/23 03:31
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb virt 6 47 675d 856d 0/29 auto-obsoleted due to no activity on 2023/11/30 12:57
upstream KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb (4) virt 6 3 402d 438d 0/29 auto-obsoleted due to no activity on 2024/08/29 17:45
upstream KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb (2) virt 6 3 581d 608d 0/29 auto-obsoleted due to no activity on 2024/03/02 22:45
upstream KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb (3) virt 6 37 467d 523d 0/29 auto-obsoleted due to no activity on 2024/06/18 13:46

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

read to 0xffff8881020b3078 of 2 bytes by task 3293 on cpu 1:
 virtqueue_disable_cb_split drivers/virtio/virtio_ring.c:873 [inline]
 virtqueue_disable_cb+0x58/0x150 drivers/virtio/virtio_ring.c:2570
 start_xmit+0x103/0x17a0 drivers/net/virtio_net.c:3362
 __netdev_start_xmit include/linux/netdevice.h:5222 [inline]
 netdev_start_xmit include/linux/netdevice.h:5231 [inline]
 xmit_one net/core/dev.c:3839 [inline]
 dev_hard_start_xmit+0x125/0x3e0 net/core/dev.c:3855
 sch_direct_xmit+0x192/0x550 net/sched/sch_generic.c:344
 __dev_xmit_skb net/core/dev.c:4114 [inline]
 __dev_queue_xmit+0xe9a/0x2000 net/core/dev.c:4691
 dev_queue_xmit include/linux/netdevice.h:3361 [inline]
 neigh_hh_output include/net/neighbour.h:531 [inline]
 neigh_output include/net/neighbour.h:545 [inline]
 ip_finish_output2+0x77f/0x8b0 net/ipv4/ip_output.c:235
 __ip_finish_output net/ipv4/ip_output.c:-1 [inline]
 ip_finish_output+0x114/0x2a0 net/ipv4/ip_output.c:323
 NF_HOOK_COND include/linux/netfilter.h:307 [inline]
 ip_output+0xbd/0x190 net/ipv4/ip_output.c:436
 dst_output include/net/dst.h:461 [inline]
 ip_local_out net/ipv4/ip_output.c:129 [inline]
 __ip_queue_xmit+0xb4b/0xb80 net/ipv4/ip_output.c:532
 ip_queue_xmit+0x39/0x50 net/ipv4/ip_output.c:546
 __tcp_transmit_skb+0x1641/0x1a60 net/ipv4/tcp_output.c:1479
 tcp_transmit_skb net/ipv4/tcp_output.c:1497 [inline]
 tcp_write_xmit+0x1210/0x2fd0 net/ipv4/tcp_output.c:2833
 __tcp_push_pending_frames+0x6d/0x1b0 net/ipv4/tcp_output.c:3016
 tcp_push+0x311/0x330 net/ipv4/tcp.c:757
 tcp_sendmsg_locked+0x2458/0x2c00 net/ipv4/tcp.c:1356
 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1393
 inet_sendmsg+0x76/0xd0 net/ipv4/af_inet.c:851
 sock_sendmsg_nosec net/socket.c:714 [inline]
 __sock_sendmsg+0x102/0x180 net/socket.c:729
 sock_write_iter+0x165/0x1b0 net/socket.c:1179
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0x52a/0x960 fs/read_write.c:686
 ksys_write+0xda/0x1a0 fs/read_write.c:738
 __do_sys_write fs/read_write.c:749 [inline]
 __se_sys_write fs/read_write.c:746 [inline]
 __x64_sys_write+0x40/0x50 fs/read_write.c:746
 x64_sys_call+0x27fe/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff8881020b3078 of 2 bytes by interrupt on cpu 0:
 virtqueue_disable_cb_split drivers/virtio/virtio_ring.c:874 [inline]
 virtqueue_disable_cb+0x7a/0x150 drivers/virtio/virtio_ring.c:2570
 skb_xmit_done+0x65/0x140 drivers/net/virtio_net.c:784
 vring_interrupt+0x155/0x180 drivers/virtio/virtio_ring.c:2719
 __handle_irq_event_percpu+0x90/0x440 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x64/0xf0 kernel/irq/handle.c:210
 handle_edge_irq+0x154/0x470 kernel/irq/chip.c:855
 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline]
 handle_irq arch/x86/kernel/irq.c:254 [inline]
 call_irq_handler arch/x86/kernel/irq.c:-1 [inline]
 __common_interrupt+0x60/0xb0 arch/x86/kernel/irq.c:325
 common_interrupt+0x7e/0x90 arch/x86/kernel/irq.c:318
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
 memcpy_orig+0xc0/0x130 arch/x86/lib/memcpy_64.S:128
 __d_alloc+0x12c/0x340 fs/dcache.c:1722
 d_alloc+0x2e/0x100 fs/dcache.c:1769
 lookup_one_qstr_excl+0x99/0x250 fs/namei.c:1693
 filename_create+0x149/0x230 fs/namei.c:4140
 do_mkdirat+0x52/0x3f0 fs/namei.c:4391
 __do_sys_mkdirat fs/namei.c:4416 [inline]
 __se_sys_mkdirat fs/namei.c:4414 [inline]
 __x64_sys_mkdirat+0x4c/0x60 fs/namei.c:4414
 x64_sys_call+0x2b7/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:259
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000 -> 0x0001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3315 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
==================================================================

Crashes (59):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/29 23:53 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/25 14:30 upstream 69fd6b99b8f8 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/18 15:08 upstream c17b750b3ad9 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/13 15:47 upstream 8742b2d8935f 22ec1469 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/11 22:12 upstream 8f5ae30d69d7 c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/09 17:20 upstream 2988dfed8a5d 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/08/06 23:51 upstream cca7a0aae895 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/07/25 21:57 upstream 2942242dde89 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/07/21 11:23 upstream 89be9a83ccf1 56d87229 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/07/17 04:54 upstream e2291551827f 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/07/11 08:40 upstream bc9ff192a6c9 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/25 15:32 upstream 7595b66ae9de 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/24 03:03 upstream 78f4e737a53e e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/22 03:23 upstream 3f75bfff44be d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/03 00:36 upstream fe4281644c62 a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/01 21:26 upstream bb1556ec9464 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/06/01 04:01 upstream 4cb6c8af8591 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/05/28 13:47 upstream feacb1774bd5 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/05/10 06:23 upstream 0e1329d4045c 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/05/04 21:25 upstream e8ab83e34bdc b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/04/29 06:52 upstream f15d97df5afa aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/04/16 04:08 upstream 1a1d569a75f3 a95239b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/04/13 13:15 upstream 7cdabafc0012 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/04/05 03:19 upstream a52a3c18cdf3 c53ea9c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/03/24 17:02 upstream 38fec10eb60d 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/03/22 13:22 upstream 88d324e69ea9 c6512ef7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/03/16 21:27 upstream cb82ca153949 e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/02/28 08:14 upstream 1e15510b71c9 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/02/13 19:47 upstream ab68d7eb7b1a a98a8417 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/02/03 16:42 upstream 2014c95afece a21a8419 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/31 03:11 upstream 72deda0abee6 4c6ac32f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/30 13:35 upstream ebbb8be421ee afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/22 15:58 upstream c4b9570cfb63 a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/17 10:11 upstream 9bffa1ad25b8 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/16 20:23 upstream ce69b4019001 f9e07a6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/05 10:10 upstream ab75170520d4 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2025/01/04 02:13 upstream 63676eefb7a0 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/31 02:41 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/27 22:57 upstream 8379578b11d5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/22 10:21 upstream 48f506ad0b68 b4fbdbd4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/18 04:50 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/17 12:49 upstream f44d154d6e3d f93b2b55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/16 05:03 upstream 78d4f34e2115 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/12 03:56 upstream 231825b2e1ff 6f1b0fa8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/12/04 16:16 upstream feffde684ac2 b50eb251 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/22 20:24 upstream 28eb75e178d3 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/18 19:37 upstream adc218676eef e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/17 09:38 upstream b5a24181e461 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/15 14:29 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/12 02:33 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/11 02:16 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/05 22:35 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/11/03 11:14 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/10/23 15:39 upstream c2ee9f594da8 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/10/19 13:19 upstream 3d5ad2d4eca3 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/10/07 05:56 upstream 8cf0b93919e1 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/09/25 12:03 upstream 684a64bf32b6 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/09/20 18:17 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
2024/09/20 02:06 upstream 2004cef11ea0 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb
* Struck through repros no longer work on HEAD.