================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff8881014bf2ec of 4 bytes by interrupt on cpu 1: random_recv_done+0x62/0x90 drivers/char/hw_random/virtio-rng.c:45 vring_interrupt+0x150/0x170 drivers/virtio/virtio_ring.c:2501 __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+0x7a/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 mas_rev_awalk lib/maple_tree.c:5009 [inline] mas_empty_area_rev+0xe2b/0xed0 lib/maple_tree.c:5361 unmapped_area_topdown mm/mmap.c:1618 [inline] vm_unmapped_area+0x25e/0x6b0 mm/mmap.c:1657 arch_get_unmapped_area_topdown+0x1fa/0x250 arch/x86/kernel/sys_x86_64.c:215 get_unmapped_area+0x157/0x270 mm/mmap.c:1815 do_mmap+0x29c/0xaa0 mm/mmap.c:1270 vm_mmap_pgoff+0x12f/0x240 mm/util.c:543 ksys_mmap_pgoff+0xc5/0x320 mm/mmap.c:1440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff8881014bf2ec of 4 bytes by task 10748 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+0x17f/0x3f0 drivers/char/hw_random/virtio-rng.c:92 rng_get_data drivers/char/hw_random/core.c:197 [inline] rng_dev_read+0x1a7/0x5e0 drivers/char/hw_random/core.c:234 vfs_read+0x19e/0x580 fs/read_write.c:468 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 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: 10748 Comm: syz-executor.0 Tainted: G W 6.4.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 ==================================================================