================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff888101d4f6cc 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 __tsan_read4+0xe/0x180 kernel/kcsan/core.c:1013 d_in_lookup include/linux/dcache.h:356 [inline] retain_dentry+0x14/0x190 fs/dcache.c:665 dput+0x10e/0x1f0 fs/dcache.c:908 do_unlinkat+0x288/0x510 fs/namei.c:4263 __do_sys_unlink fs/namei.c:4308 [inline] __se_sys_unlink fs/namei.c:4306 [inline] __x64_sys_unlink+0x2c/0x30 fs/namei.c:4306 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 0xffff888101d4f6cc of 4 bytes by task 10929 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+0x1a1/0x6a0 fs/read_write.c:480 ksys_read+0xe8/0x1a0 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:628 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: 10929 Comm: syz-executor.4 Not tainted 5.19.0-rc3-syzkaller-00229-g38bc4ac43168-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================