================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff8881019028cc of 4 bytes by interrupt on cpu 1: random_recv_done+0x58/0x80 drivers/char/hw_random/virtio-rng.c:45 vring_interrupt+0x14c/0x170 drivers/virtio/virtio_ring.c:2462 __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+0x9a/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 batadv_nc_worker+0x3ca/0xc00 net/batman-adv/network-coding.c:719 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 write to 0xffff8881019028cc of 4 bytes by task 4811 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 vfs_read+0x198/0x560 fs/read_write.c:468 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: 0x00000040 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 4811 Comm: syz-executor.4 Not tainted 6.0.0-rc5-syzkaller-00094-ga335366bad13-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 ==================================================================