================================================================== BUG: KCSAN: data-race in block_uevent / inc_diskseq write to 0xffff888102286220 of 8 bytes by task 10939 on cpu 0: inc_diskseq+0x2c/0x40 block/genhd.c:1494 disk_force_media_change+0x9f/0xf0 block/disk-events.c:297 loop_configure+0x626/0xa30 drivers/block/loop.c:1084 lo_ioctl+0x5f6/0x11c0 blkdev_ioctl+0x359/0x450 block/ioctl.c:693 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17 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 0xffff888102286220 of 8 bytes by task 3492 on cpu 1: block_uevent+0x31/0x50 block/genhd.c:1233 dev_uevent+0x2f3/0x380 drivers/base/core.c:2680 uevent_show+0x11e/0x210 drivers/base/core.c:2738 dev_attr_show+0x3a/0xa0 drivers/base/core.c:2430 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:484 [inline] vfs_read+0x5dc/0x700 fs/read_write.c:565 ksys_read+0xe8/0x1b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:715 x64_sys_call+0x2874/0x2dc0 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: 0x00000000000006ed -> 0x00000000000006ee Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3492 Comm: udevd Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================