================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff8881018724cc 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 arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] arch_atomic_long_read include/linux/atomic/atomic-long.h:29 [inline] atomic_long_read include/linux/atomic/atomic-instrumented.h:1266 [inline] find_watchpoint kernel/kcsan/core.c:129 [inline] check_access kernel/kcsan/core.c:726 [inline] __tsan_unaligned_write8+0x28/0x180 kernel/kcsan/core.c:1014 getname_flags+0x9d/0x350 fs/namei.c:148 user_path_at_empty+0x28/0x110 fs/namei.c:2875 do_readlinkat+0x98/0x210 fs/stat.c:456 __do_sys_readlink fs/stat.c:489 [inline] __se_sys_readlink fs/stat.c:486 [inline] __x64_sys_readlink+0x43/0x50 fs/stat.c:486 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 write to 0xffff8881018724cc of 4 bytes by task 2761 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+0x2d5/0x760 fs/read_write.c:792 vfs_readv fs/read_write.c:910 [inline] do_readv+0x17b/0x2b0 fs/read_write.c:947 __do_sys_readv fs/read_write.c:1038 [inline] __se_sys_readv fs/read_write.c:1035 [inline] __x64_sys_readv+0x41/0x50 fs/read_write.c:1035 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: 2761 Comm: syz-executor.2 Not tainted 6.0.0-rc6-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 ==================================================================