================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff888101db58cc of 4 bytes by interrupt on cpu 1: random_recv_done+0x58/0x80 drivers/char/hw_random/virtio-rng.c:45 vring_interrupt+0x143/0x1c0 drivers/virtio/virtio_ring.c:2149 __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:817 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+0x9a/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x27/0x40 check_kcov_mode kernel/kcov.c:168 [inline] write_comp_data kernel/kcov.c:229 [inline] __sanitizer_cov_trace_const_cmp4+0x33/0xa0 kernel/kcov.c:297 __skb_datagram_iter+0x5f/0x510 net/core/datagram.c:419 skb_copy_datagram_iter+0x36/0xf0 net/core/datagram.c:530 skb_copy_datagram_msg include/linux/skbuff.h:4004 [inline] __unix_dgram_recvmsg+0x507/0x8b0 net/unix/af_unix.c:2429 unix_dgram_recvmsg+0x77/0x80 net/unix/af_unix.c:2487 ____sys_recvmsg+0x162/0x2f0 ___sys_recvmsg net/socket.c:2753 [inline] do_recvmmsg+0x53a/0xa30 net/socket.c:2847 __sys_recvmmsg net/socket.c:2926 [inline] __do_sys_recvmmsg net/socket.c:2949 [inline] __se_sys_recvmmsg net/socket.c:2942 [inline] __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2942 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+0x46/0xb0 write to 0xffff888101db58cc of 4 bytes by task 8385 on cpu 0: request_entropy drivers/char/hw_random/virtio-rng.c:56 [inline] copy_data drivers/char/hw_random/virtio-rng.c:74 [inline] virtio_read+0x190/0x430 drivers/char/hw_random/virtio-rng.c:92 rng_get_data drivers/char/hw_random/core.c:191 [inline] rng_dev_read+0x1b4/0x630 drivers/char/hw_random/core.c:228 do_iter_read+0x348/0x5d0 fs/read_write.c:805 vfs_readv fs/read_write.c:923 [inline] do_preadv+0x159/0x230 fs/read_write.c:1015 __do_sys_preadv fs/read_write.c:1065 [inline] __se_sys_preadv fs/read_write.c:1060 [inline] __x64_sys_preadv+0x54/0x60 fs/read_write.c:1060 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+0x46/0xb0 value changed: 0x00000040 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8385 Comm: syz-executor.4 Tainted: G W 5.19.0-rc3-syzkaller-00038-gca1fdab7fd27-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================