================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff888100a3d0cc of 4 bytes by interrupt on cpu 1: random_recv_done+0x58/0x80 drivers/char/hw_random/virtio-rng.c:45 vring_interrupt+0x15d/0x180 drivers/virtio/virtio_ring.c:2163 __handle_irq_event_percpu+0x93/0x480 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:198 [inline] handle_irq_event+0x9a/0x150 kernel/irq/handle.c:215 handle_edge_irq+0x18e/0x5f0 kernel/irq/chip.c:822 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+0x1e/0x40 __sanitizer_cov_trace_pc+0x46/0x60 kernel/kcov.c:205 sctp_v4_cmp_addr+0x66/0xb0 net/sctp/protocol.c:304 sctp_bind_addr_state+0x7c/0x100 net/sctp/bind_addr.c:407 sctp_copy_local_addr_list+0x176/0x230 net/sctp/protocol.c:162 sctp_copy_one_addr+0x7d/0x3f0 net/sctp/bind_addr.c:460 sctp_bind_addr_copy+0x11e/0x280 net/sctp/bind_addr.c:68 sctp_assoc_set_bind_addr_from_ep+0xbc/0xd0 net/sctp/associola.c:1592 sctp_connect_new_asoc+0x1cb/0x3a0 net/sctp/socket.c:1092 __sctp_connect+0x416/0xa80 net/sctp/socket.c:1194 sctp_connect net/sctp/socket.c:4808 [inline] sctp_inet_connect+0xe1/0x100 net/sctp/socket.c:4823 __sys_connect_file net/socket.c:1896 [inline] __sys_connect+0x197/0x1b0 net/socket.c:1913 __do_sys_connect net/socket.c:1923 [inline] __se_sys_connect net/socket.c:1920 [inline] __x64_sys_connect+0x3d/0x50 net/socket.c:1920 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae write to 0xffff888100a3d0cc of 4 bytes by task 7674 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+0x1a0/0x450 drivers/char/hw_random/virtio-rng.c:92 rng_get_data drivers/char/hw_random/core.c:192 [inline] rng_dev_read+0x1b4/0x630 drivers/char/hw_random/core.c:229 loop_rw_iter+0x257/0x350 io_iter_do_read fs/io_uring.c:3507 [inline] io_read fs/io_uring.c:3562 [inline] io_issue_sqe+0x5070/0x53b0 fs/io_uring.c:6675 io_wq_submit_work+0x1c5/0x370 fs/io_uring.c:6840 io_worker_handle_work+0x4ca/0xbd0 fs/io-wq.c:576 io_wqe_worker+0x1bc/0x4f0 fs/io-wq.c:632 ret_from_fork+0x1f/0x30 value changed: 0x00000040 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7674 Comm: iou-wrk-7673 Not tainted 5.16.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================