I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 ================================================================== BUG: KCSAN: data-race in block_read_full_page / set_capacity_and_notify write to 0xffff888100421ad8 of 8 bytes by task 4253 on cpu 1: i_size_write include/linux/fs.h:878 [inline] set_capacity block/genhd.c:63 [inline] set_capacity_and_notify+0x9d/0x1d0 block/genhd.c:78 loop_set_size+0x2e/0x70 drivers/block/loop.c:233 loop_configure+0xb66/0xc90 drivers/block/loop.c:1059 lo_ioctl+0x617/0x11b0 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856 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+0x44/0xae read to 0xffff888100421ad8 of 8 bytes by task 17531 on cpu 0: i_size_read include/linux/fs.h:856 [inline] block_read_full_page+0xc4/0x7b0 fs/buffer.c:2268 blkdev_readpage+0x18/0x20 block/fops.c:392 filemap_read_folio mm/filemap.c:2422 [inline] filemap_update_page mm/filemap.c:2504 [inline] filemap_get_pages mm/filemap.c:2616 [inline] filemap_read+0xaed/0x1400 mm/filemap.c:2679 blkdev_read_iter+0x2c6/0x370 block/fops.c:611 call_read_iter include/linux/fs.h:2044 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0x5a5/0x6a0 fs/read_write.c:482 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+0x44/0xae value changed: 0x0000000000000000 -> 0x00000000007ffe00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 17531 Comm: udevd Not tainted 5.18.0-rc4-syzkaller-00083-g259b897e5a79-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== I/O error, dev loop1, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 16128 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 16128, async page read I/O error, dev loop4, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop4, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop4, logical block 0, async page read I/O error, dev loop4, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 16128 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0