loop5: detected capacity change from 0 to 4096 EXT4-fs (loop5): bad geometry: block count 603 exceeds size of device (512 blocks) ================================================================== BUG: KCSAN: data-race in lru_add_drain_all / lru_cache_add write to 0xffff888237c264a8 of 1 bytes by task 23129 on cpu 0: pagevec_add include/linux/pagevec.h:74 [inline] lru_cache_add+0x74/0x130 mm/swap.c:461 add_to_page_cache_lru+0x150/0x1b0 mm/filemap.c:999 pagecache_get_page+0x6a3/0x900 mm/filemap.c:1912 grab_cache_page_write_begin+0x3f/0x70 mm/filemap.c:3626 ext4_da_write_begin+0x305/0x820 fs/ext4/inode.c:2984 generic_perform_write+0x196/0x3a0 mm/filemap.c:3676 ext4_buffered_write_iter+0x2f2/0x3f0 fs/ext4/file.c:269 ext4_file_write_iter+0x2e7/0x11d0 fs/ext4/file.c:519 call_write_iter include/linux/fs.h:2116 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x69d/0x770 fs/read_write.c:605 ksys_write+0xce/0x180 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write fs/read_write.c:667 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:667 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237c264a8 of 1 bytes by task 23115 on cpu 1: pagevec_count include/linux/pagevec.h:61 [inline] lru_add_drain_all+0x108/0x3b0 mm/swap.c:813 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 __loop_clr_fd+0x2e2/0x650 drivers/block/loop.c:1241 loop_clr_fd drivers/block/loop.c:1336 [inline] lo_ioctl+0x9eb/0x11f0 drivers/block/loop.c:1694 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1664 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 23115 Comm: syz-executor.5 Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================