================================================================== BUG: KCSAN: data-race in virtqueue_disable_cb / virtqueue_disable_cb read to 0xffff88810125ee78 of 2 bytes by interrupt on cpu 1: virtqueue_disable_cb_split drivers/virtio/virtio_ring.c:885 [inline] virtqueue_disable_cb+0x63/0x180 drivers/virtio/virtio_ring.c:2446 skb_xmit_done+0x5f/0x140 drivers/net/virtio_net.c:735 vring_interrupt+0x161/0x190 drivers/virtio/virtio_ring.c:2595 __handle_irq_event_percpu+0x95/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+0x16d/0x5b0 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0x58/0xe0 arch/x86/kernel/irq.c:285 common_interrupt+0x7c/0x90 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705 selinux_file security/selinux/include/objsec.h:159 [inline] selinux_file_permission+0x4b/0x360 security/selinux/hooks.c:3627 security_file_permission+0x3d/0x80 security/security.c:2841 rw_verify_area fs/read_write.c:470 [inline] vfs_write+0x13d/0x920 fs/read_write.c:674 ksys_write+0xeb/0x1b0 fs/read_write.c:736 __do_sys_write fs/read_write.c:748 [inline] __se_sys_write fs/read_write.c:745 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:745 x64_sys_call+0x27dd/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff88810125ee78 of 2 bytes by interrupt on cpu 0: virtqueue_disable_cb_split drivers/virtio/virtio_ring.c:886 [inline] virtqueue_disable_cb+0x85/0x180 drivers/virtio/virtio_ring.c:2446 start_xmit+0x14b/0x1280 drivers/net/virtio_net.c:3087 __netdev_start_xmit include/linux/netdevice.h:4928 [inline] netdev_start_xmit include/linux/netdevice.h:4937 [inline] xmit_one net/core/dev.c:3588 [inline] dev_hard_start_xmit+0x119/0x3f0 net/core/dev.c:3604 sch_direct_xmit+0x1a9/0x580 net/sched/sch_generic.c:343 __dev_xmit_skb net/core/dev.c:3825 [inline] __dev_queue_xmit+0xf1a/0x2040 net/core/dev.c:4398 dev_queue_xmit include/linux/netdevice.h:3094 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0x73d/0x8b0 net/ipv4/ip_output.c:236 ip_finish_output+0x11a/0x2a0 net/ipv4/ip_output.c:324 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0xab/0x170 net/ipv4/ip_output.c:434 dst_output include/net/dst.h:450 [inline] ip_local_out net/ipv4/ip_output.c:130 [inline] __ip_queue_xmit+0xbcc/0xbf0 net/ipv4/ip_output.c:536 ip_queue_xmit+0x38/0x50 net/ipv4/ip_output.c:550 __tcp_transmit_skb+0x15b0/0x1970 net/ipv4/tcp_output.c:1466 tcp_transmit_skb net/ipv4/tcp_output.c:1484 [inline] tcp_write_xmit+0x1410/0x3220 net/ipv4/tcp_output.c:2827 __tcp_push_pending_frames+0x6a/0x1a0 net/ipv4/tcp_output.c:3012 tcp_push_pending_frames include/net/tcp.h:2107 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5741 [inline] tcp_rcv_established+0x953/0xef0 net/ipv4/tcp_input.c:6266 tcp_v4_do_rcv+0x662/0x740 net/ipv4/tcp_ipv4.c:1915 tcp_v4_rcv+0x1b25/0x1ee0 net/ipv4/tcp_ipv4.c:2350 ip_protocol_deliver_rcu+0x370/0x720 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x17d/0x210 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:314 [inline] ip_local_deliver+0xec/0x1d0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [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+0x55a/0x640 net/ipv4/ip_input.c:638 ip_list_rcv+0x25e/0x290 net/ipv4/ip_input.c:672 __netif_receive_skb_list_ptype net/core/dev.c:5713 [inline] __netif_receive_skb_list_core+0x4f0/0x520 net/core/dev.c:5760 __netif_receive_skb_list net/core/dev.c:5812 [inline] netif_receive_skb_list_internal+0x4e4/0x660 net/core/dev.c:5903 gro_normal_list include/net/gro.h:515 [inline] napi_complete_done+0x1cb/0x450 net/core/dev.c:6254 virtqueue_napi_complete drivers/net/virtio_net.c:717 [inline] virtnet_poll+0x1b7c/0x2110 drivers/net/virtio_net.c:2851 __napi_poll+0x63/0x3c0 net/core/dev.c:6779 napi_poll net/core/dev.c:6848 [inline] net_rx_action+0x3a1/0x7f0 net/core/dev.c:6970 handle_softirqs+0xbf/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 common_interrupt+0x81/0x90 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 preempt_count arch/x86/include/asm/preempt.h:26 [inline] check_kcov_mode kernel/kcov.c:183 [inline] write_comp_data kernel/kcov.c:246 [inline] __sanitizer_cov_trace_const_cmp4+0x18/0x90 kernel/kcov.c:314 try_to_unlazy+0x42/0x3b0 fs/namei.c:784 complete_walk+0xbd/0x1f0 fs/namei.c:897 do_open fs/namei.c:3740 [inline] path_openat+0x16bb/0x1fa0 fs/namei.c:3933 do_filp_open+0xf7/0x200 fs/namei.c:3960 do_sys_openat2+0xab/0x120 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1441 x64_sys_call+0x1025/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000 -> 0x0001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 10716 Comm: syz-executor Not tainted 6.12.0-rc7-syzkaller-00125-gcfaaa7d010d1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================