blk_print_req_error: 10 callbacks suppressed I/O error, dev loop5, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 ================================================================== BUG: KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify write to 0xffff888101376ad8 of 8 bytes by task 8070 on cpu 1: i_size_write include/linux/fs.h:914 [inline] set_capacity block/genhd.c:62 [inline] set_capacity_and_notify+0x9d/0x1d0 block/genhd.c:77 loop_set_size drivers/block/loop.c:231 [inline] loop_configure+0xd53/0xf50 drivers/block/loop.c:1054 lo_ioctl+0x633/0x1280 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 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 read to 0xffff888101376ad8 of 8 bytes by task 1953 on cpu 0: i_size_read include/linux/fs.h:892 [inline] do_page_cache_ra mm/readahead.c:255 [inline] force_page_cache_ra+0x170/0x220 mm/readahead.c:300 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:574 page_cache_sync_readahead include/linux/pagemap.h:1056 [inline] filemap_get_pages mm/filemap.c:2511 [inline] filemap_read+0x3ed/0x1430 mm/filemap.c:2598 blkdev_read_iter+0xcb/0x350 block/fops.c:610 call_read_iter include/linux/fs.h:2080 [inline] new_sync_read fs/read_write.c:400 [inline] vfs_read+0x66c/0x750 fs/read_write.c:481 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: 0x0000000000000000 -> 0x0000000008100000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1953 Comm: udevd Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== I/O error, dev loop5, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop5, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop5, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 blk_print_req_error: 5 callbacks suppressed I/O error, dev loop3, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop5, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop5, sector 262016 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0