================================================================== BUG: KCSAN: data-race in block_uevent / inc_diskseq write to 0xffff8881020eae20 of 8 bytes by task 4916 on cpu 1: inc_diskseq+0x2d/0x40 block/genhd.c:1517 disk_force_media_change+0x9e/0xe0 block/disk-events.c:297 loop_configure+0x540/0x970 drivers/block/loop.c:1043 lo_ioctl+0x559/0x15d0 drivers/block/loop.c:-1 blkdev_ioctl+0x352/0x440 block/ioctl.c:704 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff8881020eae20 of 8 bytes by task 3006 on cpu 0: block_uevent+0x31/0x50 block/genhd.c:1256 dev_uevent+0x349/0x3d0 drivers/base/core.c:2703 uevent_show+0x117/0x200 drivers/base/core.c:2759 dev_attr_show+0x3c/0xa0 drivers/base/core.c:2424 sysfs_kf_seq_show+0x1a3/0x280 fs/sysfs/file.c:65 kernfs_seq_show+0x82/0xa0 fs/kernfs/file.c:205 seq_read_iter+0x319/0x940 fs/seq_file.c:230 kernfs_fop_read_iter+0xc4/0x300 fs/kernfs/file.c:279 new_sync_read fs/read_write.c:489 [inline] vfs_read+0x5ca/0x6f0 fs/read_write.c:570 ksys_read+0xda/0x1a0 fs/read_write.c:713 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x40/0x50 fs/read_write.c:720 x64_sys_call+0x2d77/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000000000f2 -> 0x00000000000000f9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3006 Comm: udevd Not tainted 6.15.0-rc6-syzkaller-00208-g3c21441eeffc #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 ==================================================================