================================================================== BUG: KCSAN: data-race in block_uevent / inc_diskseq write to 0xffff888102184620 of 8 bytes by task 3269 on cpu 0: inc_diskseq+0x2c/0x40 block/genhd.c:1472 disk_force_media_change+0x9f/0xf0 block/disk-events.c:297 __loop_clr_fd drivers/block/loop.c:1169 [inline] lo_release+0x2ca/0x400 drivers/block/loop.c:1739 bdev_release+0x3c6/0x420 blkdev_release+0x15/0x20 block/fops.c:639 __fput+0x17a/0x6d0 fs/file_table.c:431 __fput_sync+0x43/0x60 fs/file_table.c:516 __do_sys_close fs/open.c:1567 [inline] __se_sys_close+0xf9/0x1a0 fs/open.c:1552 __x64_sys_close+0x1f/0x30 fs/open.c:1552 x64_sys_call+0x25cb/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:4 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888102184620 of 8 bytes by task 2968 on cpu 1: block_uevent+0x31/0x50 block/genhd.c:1206 dev_uevent+0x2fd/0x380 drivers/base/core.c:2686 uevent_show+0x10c/0x1f0 drivers/base/core.c:2742 dev_attr_show+0x3a/0xa0 drivers/base/core.c:2431 sysfs_kf_seq_show+0x17c/0x250 fs/sysfs/file.c:59 kernfs_seq_show+0x7c/0x90 fs/kernfs/file.c:205 seq_read_iter+0x2d1/0x930 fs/seq_file.c:230 kernfs_fop_read_iter+0xc0/0x310 fs/kernfs/file.c:279 new_sync_read fs/read_write.c:488 [inline] vfs_read+0x5f6/0x720 fs/read_write.c:569 ksys_read+0xeb/0x1b0 fs/read_write.c:712 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:720 x64_sys_call+0x27d3/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000053 -> 0x0000000000000054 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 2968 Comm: udevd Tainted: G W 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================