================================================================== BUG: KCSAN: data-race in virtqueue_disable_cb / vring_interrupt write to 0xffff888103240e5a of 1 bytes by interrupt on cpu 1: vring_interrupt+0x128/0x170 drivers/virtio/virtio_ring.c:2487 __handle_irq_event_percpu+0x91/0x490 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+0x167/0x590 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+0x3c/0xb0 arch/x86/kernel/irq.c:250 common_interrupt+0x3d/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 read to 0xffff888103240e5a of 1 bytes by interrupt on cpu 0: virtqueue_disable_cb+0x1b/0x170 drivers/virtio/virtio_ring.c:2336 start_xmit+0xc0/0xaa0 drivers/net/virtio_net.c:2007 __netdev_start_xmit include/linux/netdevice.h:4884 [inline] netdev_start_xmit include/linux/netdevice.h:4898 [inline] xmit_one net/core/dev.c:3581 [inline] dev_hard_start_xmit+0x11b/0x3f0 net/core/dev.c:3597 sch_direct_xmit+0x1b0/0x570 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3808 [inline] __dev_queue_xmit+0xf4a/0x1e60 net/core/dev.c:4213 dev_queue_xmit include/linux/netdevice.h:3054 [inline] neigh_hh_output include/net/neighbour.h:530 [inline] neigh_output include/net/neighbour.h:544 [inline] ip_finish_output2+0x6ff/0x840 net/ipv4/ip_output.c:228 ip_finish_output+0xf4/0x240 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0xe5/0x1b0 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xa4d/0xa70 net/ipv4/ip_output.c:532 ip_queue_xmit+0x38/0x40 net/ipv4/ip_output.c:546 __tcp_transmit_skb+0x1165/0x16c0 net/ipv4/tcp_output.c:1399 __tcp_send_ack+0x1e0/0x2d0 net/ipv4/tcp_output.c:3983 tcp_send_ack+0x27/0x30 net/ipv4/tcp_output.c:3989 __tcp_ack_snd_check+0x2d5/0x500 net/ipv4/tcp_input.c:5536 tcp_ack_snd_check net/ipv4/tcp_input.c:5582 [inline] tcp_rcv_established+0x6f8/0xe50 net/ipv4/tcp_input.c:6020 tcp_v4_do_rcv+0x2ac/0x600 net/ipv4/tcp_ipv4.c:1721 tcp_v4_rcv+0x1856/0x1ab0 net/ipv4/tcp_ipv4.c:2143 ip_protocol_deliver_rcu+0x356/0x6d0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x13d/0x1b0 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:302 [inline] ip_local_deliver+0xec/0x1c0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:454 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:630 [inline] ip_sublist_rcv+0x4e1/0x5b0 net/ipv4/ip_input.c:638 ip_list_rcv+0x25e/0x290 net/ipv4/ip_input.c:673 __netif_receive_skb_list_ptype net/core/dev.c:5523 [inline] __netif_receive_skb_list_core+0x356/0x460 net/core/dev.c:5571 __netif_receive_skb_list net/core/dev.c:5623 [inline] netif_receive_skb_list_internal+0x4e6/0x660 net/core/dev.c:5714 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x1b8/0x3d0 net/core/dev.c:6054 virtqueue_napi_complete drivers/net/virtio_net.c:405 [inline] virtnet_poll+0x729/0x9a0 drivers/net/virtio_net.c:1855 __napi_poll+0x60/0x3b0 net/core/dev.c:6483 napi_poll net/core/dev.c:6550 [inline] net_rx_action+0x31a/0x6c0 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x57/0xa0 kernel/softirq.c:650 common_interrupt+0x7f/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 arch_test_and_set_bit arch/x86/include/asm/bitops.h:138 [inline] test_and_set_bit include/asm-generic/bitops/instrumented-atomic.h:72 [inline] queue_delayed_work_on+0xcb/0x100 kernel/workqueue.c:1707 nsim_dev_trap_report_work+0x58c/0x5a0 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537 kthread+0x1a6/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3230 Comm: kworker/0:3 Not tainted 6.3.0-rc7-syzkaller-00189-g2caeeb9d4a1b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: events nsim_dev_trap_report_work ==================================================================