================================================================== BUG: KCSAN: data-race in force_page_cache_ra / set_capacity_and_notify write to 0xffff88810134ca60 of 8 bytes by task 23001 on cpu 1: i_size_write include/linux/fs.h:913 [inline] set_capacity block/genhd.c:60 [inline] set_capacity_and_notify+0x9d/0x1e0 block/genhd.c:75 loop_set_size drivers/block/loop.c:231 [inline] loop_set_status+0x405/0x5d0 drivers/block/loop.c:1291 lo_ioctl+0x785/0x1270 blkdev_ioctl+0x20e/0x440 block/ioctl.c:609 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 0xffff88810134ca60 of 8 bytes by task 22363 on cpu 0: i_size_read include/linux/fs.h:891 [inline] do_page_cache_ra mm/readahead.c:255 [inline] force_page_cache_ra+0x170/0x220 mm/readahead.c:300 force_page_cache_readahead mm/internal.h:89 [inline] generic_fadvise+0x2e0/0x430 mm/fadvise.c:107 vfs_fadvise mm/fadvise.c:186 [inline] ksys_fadvise64_64 mm/fadvise.c:200 [inline] __do_sys_fadvise64 mm/fadvise.c:215 [inline] __se_sys_fadvise64 mm/fadvise.c:213 [inline] __x64_sys_fadvise64+0xc5/0x100 mm/fadvise.c:213 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 -> 0x0000000000001e00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22363 Comm: syz-executor.0 Not tainted 5.16.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================