syzbot


KCSAN: data-race in virtqueue_disable_cb / vring_interrupt

Status: moderation: reported on 2022/04/24 17:40
Reported-by: syzbot+1dc46d73e4c1b726ed95@syzkaller.appspotmail.com
First crash: 441d, last: 5d09h

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

write to 0xffff8881032cb15a of 1 bytes by interrupt on cpu 0:
 vring_interrupt+0x124/0x170 drivers/virtio/virtio_ring.c:2458
 __handle_irq_event_percpu+0x92/0x400 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x60/0xf0 kernel/irq/handle.c:210
 handle_edge_irq+0x17e/0x5a0 kernel/irq/chip.c:819
 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
 handle_irq arch/x86/kernel/irq.c:231 [inline]
 __common_interrupt+0x60/0x100 arch/x86/kernel/irq.c:250
 common_interrupt+0x45/0xc0 arch/x86/kernel/irq.c:240
 asm_common_interrupt+0x22/0x40

read to 0xffff8881032cb15a of 1 bytes by task 1992 on cpu 1:
 virtqueue_disable_cb+0x17/0x160 drivers/virtio/virtio_ring.c:2307
 start_xmit+0xd1/0xaf0 drivers/net/virtio_net.c:1830
 __netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 netdev_start_xmit include/linux/netdevice.h:4833 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3590
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3606
 sch_direct_xmit+0x1ac/0x580 net/sched/sch_generic.c:342
 __dev_xmit_skb+0x806/0xdb0 net/core/dev.c:3817
 __dev_queue_xmit+0x59f/0xfe0 net/core/dev.c:4222
 dev_queue_xmit include/linux/netdevice.h:3008 [inline]
 neigh_hh_output include/net/neighbour.h:535 [inline]
 neigh_output include/net/neighbour.h:549 [inline]
 ip_finish_output2+0x70b/0x850 net/ipv4/ip_output.c:228
 ip_finish_output+0xf3/0x250 net/ipv4/ip_output.c:316
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip_output+0xf3/0x1a0 net/ipv4/ip_output.c:430
 dst_output include/net/dst.h:451 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 __ip_queue_xmit+0xa2e/0xa50 net/ipv4/ip_output.c:532
 ip_queue_xmit+0x34/0x40 net/ipv4/ip_output.c:546
 __tcp_transmit_skb+0x1242/0x1730 net/ipv4/tcp_output.c:1402
 __tcp_send_ack+0x1dc/0x2e0 net/ipv4/tcp_output.c:3981
 tcp_send_ack+0x23/0x30 net/ipv4/tcp_output.c:3987
 __tcp_cleanup_rbuf+0x14e/0x260 net/ipv4/tcp.c:1617
 tcp_cleanup_rbuf net/ipv4/tcp.c:1628 [inline]
 tcp_recvmsg_locked+0x10c4/0x1580 net/ipv4/tcp.c:2640
 tcp_recvmsg+0x148/0x4c0 net/ipv4/tcp.c:2670
 inet_recvmsg+0x9e/0x210 net/ipv4/af_inet.c:850
 sock_recvmsg_nosec net/socket.c:995 [inline]
 sock_recvmsg net/socket.c:1013 [inline]
 sock_read_iter+0x1b1/0x1f0 net/socket.c:1086
 call_read_iter include/linux/fs.h:2181 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x3a5/0x560 fs/read_write.c:470
 ksys_read+0xe8/0x1a0 fs/read_write.c:607
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1992 Comm: syz-fuzzer Not tainted 6.0.0-rc6-syzkaller-00045-gdc164f4fb00a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (81):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/23 07:40 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/09/21 15:18 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/09/15 09:04 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/09/14 15:00 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/09/02 20:20 upstream 0b3acd1cc022 25194605 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/09/01 20:19 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/30 01:19 upstream b90cb1053190 d7593c58 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/24 14:36 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/16 20:45 upstream 7ebfc85e2cd7 9e4b39c2 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/15 22:42 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/08 19:33 upstream 3466f49dd0dd da700653 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/08 16:29 upstream 4e23eeebb2e5 da700653 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/03 11:43 upstream e2b542100719 1c9013ac .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/08/03 02:22 upstream 7d0d3fa7339e 1c9013ac .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/30 18:53 upstream 620725263f42 fef302b1 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/21 07:36 upstream 353f7988dd84 6e67af9d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/17 22:27 upstream ff6992735ade 95cb00d1 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/17 05:55 upstream c658cabbfd32 95cb00d1 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/16 07:55 upstream 9b59ec8d50a1 95cb00d1 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/13 04:05 upstream 72a8e05d4f66 d91dd8ea .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/07/03 18:10 upstream 20855e4cb361 1434eec0 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/06/25 22:25 upstream 0840a7914caa a371c43c .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/06/02 10:33 upstream d1dc87763f40 6e12f05f .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/05/23 11:20 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/05/19 16:42 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/05/14 00:20 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/05/13 08:33 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/05/07 14:48 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/28 20:09 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/25 23:51 upstream af2d861d4cd2 152baedd .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/23 20:35 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/23 08:08 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/20 16:05 upstream 559089e0a93d d4befee1 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/19 04:38 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/15 19:28 upstream 028192fea1de 8bcc32a6 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/04/04 02:47 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/24 11:02 upstream ed4643521e6a 89bc8608 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/24 00:11 upstream 6b1f86f8e9c7 5ff41e94 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/21 21:32 upstream eaa54b1458ca e2d91b1d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/17 02:23 upstream 56e337f2cf13 46cc3b21 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/15 19:20 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/14 16:49 upstream 09688c0166e7 9e8eaa75 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/13 02:02 upstream aad611a868d1 9e8eaa75 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2022/03/10 17:41 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/10/30 22:12 upstream 119c85055d86 098b5d53 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/10/27 03:00 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/10/22 01:58 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/10/15 00:43 upstream 26d657410983 7aa5fe41 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/10/04 08:15 upstream 9e1ff307c779 ce697b49 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/09/22 08:45 upstream 92477dd1faa6 169724fe .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/09/09 15:37 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/09/08 23:20 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/27 16:39 upstream 77dd11439b86 b318694d .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/20 06:09 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/15 20:25 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/15 06:50 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/13 04:17 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/08/07 13:25 upstream c9194f32bfd9 6972b106 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/07/20 15:52 upstream 8cae8cd89f05 1b201b48 .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
ci2-upstream-kcsan-gce 2021/07/14 03:55 upstream 40226a3d96ef 484502bd .config log report info KCSAN: data-race in virtqueue_disable_cb / vring_interrupt
* Struck through repros no longer work on HEAD.