loop4: detected capacity change from 0 to 131456 EXT4-fs (loop4): inodes count not valid: 655392 vs 32 ================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / lru_cache_add write to 0xffff888237c22528 of 1 bytes by task 4787 on cpu 0: pagevec_add include/linux/pagevec.h:74 [inline] pagevec_add_and_need_flush mm/swap.c:222 [inline] lru_cache_add+0x75/0x150 mm/swap.c:452 shmem_getpage_gfp+0xcb9/0x13d0 mm/shmem.c:1940 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0x7e/0x100 mm/shmem.c:2469 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770 __generic_file_write_iter+0x174/0x310 mm/filemap.c:3897 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929 call_write_iter include/linux/fs.h:2163 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7bc/0x900 fs/read_write.c:594 ksys_pwrite64 fs/read_write.c:701 [inline] __do_sys_pwrite64 fs/read_write.c:711 [inline] __se_sys_pwrite64 fs/read_write.c:708 [inline] __x64_sys_pwrite64+0xf5/0x150 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237c22528 of 1 bytes by task 4784 on cpu 1: pagevec_count include/linux/pagevec.h:61 [inline] __lru_add_drain_all+0x12c/0x3e0 mm/swap.c:819 lru_add_drain_all+0xc/0x10 mm/swap.c:841 invalidate_bdev+0x56/0x80 block/bdev.c:87 __loop_clr_fd+0x521/0x850 drivers/block/loop.c:1399 loop_clr_fd drivers/block/loop.c:1494 [inline] lo_ioctl+0xac5/0x13e0 drivers/block/loop.c:1850 blkdev_ioctl+0x1d0/0x3f0 block/ioctl.c:589 block_ioctl+0x6e/0x80 block/fops.c:478 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/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x01 -> 0x02 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4784 Comm: syz-executor.4 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop4: detected capacity change from 0 to 131456 EXT4-fs (loop4): inodes count not valid: 655392 vs 32