================================================================== BUG: KCSAN: data-race in random_recv_done / virtio_read write to 0xffff88810247d6cc 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:2165 __handle_irq_event_percpu+0x92/0x450 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x7b/0x110 kernel/irq/handle.c:210 handle_edge_irq+0x18e/0x5f0 kernel/irq/chip.c:820 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 is_atomic kernel/kcsan/core.c:247 [inline] should_watch kernel/kcsan/core.c:275 [inline] check_access kernel/kcsan/core.c:741 [inline] __tsan_read8+0x11e/0x180 kernel/kcsan/core.c:1014 kernfs_root fs/kernfs/kernfs-internal.h:48 [inline] kernfs_dop_revalidate+0x5f/0x2f0 fs/kernfs/dir.c:1081 lookup_fast+0x210/0x360 walk_component+0x6d/0x360 fs/namei.c:2016 link_path_walk+0x52f/0x990 path_lookupat+0x8b/0x3d0 fs/namei.c:2498 filename_lookup+0x130/0x310 fs/namei.c:2528 user_path_at_empty+0x3e/0x110 fs/namei.c:2851 do_readlinkat+0x97/0x210 fs/stat.c:443 __do_sys_readlink fs/stat.c:476 [inline] __se_sys_readlink fs/stat.c:473 [inline] __x64_sys_readlink+0x43/0x50 fs/stat.c:473 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 0xffff88810247d6cc of 4 bytes by task 1533 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 vfs_read+0x1e6/0x750 fs/read_write.c:479 ksys_read+0xd9/0x190 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:627 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 value changed: 0x00000040 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1533 Comm: syz-executor.3 Not tainted 5.17.0-rc3-syzkaller-00029-ge6251ab4551f-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================