EXT4-fs (loop1): inodes count not valid: 184549408 vs 32 ================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / lru_cache_add write to 0xffff888237d42528 of 1 bytes by task 13349 on cpu 1: pagevec_add include/linux/pagevec.h:74 [inline] pagevec_add_and_need_flush mm/swap.c:244 [inline] lru_cache_add+0x75/0x150 mm/swap.c:474 add_to_page_cache_lru+0x150/0x1b0 mm/filemap.c:983 page_cache_ra_unbounded+0x262/0x410 mm/readahead.c:221 do_page_cache_ra mm/readahead.c:267 [inline] force_page_cache_ra+0x246/0x280 mm/readahead.c:299 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:573 page_cache_sync_readahead include/linux/pagemap.h:884 [inline] filemap_get_pages mm/filemap.c:2467 [inline] filemap_read+0x388/0x1220 mm/filemap.c:2550 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701 blkdev_read_iter+0xb9/0xf0 fs/block_dev.c:1671 call_read_iter include/linux/fs.h:2108 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x565/0x5d0 fs/read_write.c:496 ksys_read+0xce/0x180 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:642 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237d42528 of 1 bytes by task 13397 on cpu 0: pagevec_count include/linux/pagevec.h:61 [inline] __lru_add_drain_all+0x12c/0x3e0 mm/swap.c:828 lru_add_drain_all+0xc/0x10 mm/swap.c:850 invalidate_bdev+0x50/0x70 fs/block_dev.c:96 __loop_clr_fd+0x566/0x8f0 drivers/block/loop.c:1402 loop_clr_fd drivers/block/loop.c:1496 [inline] lo_ioctl+0xa48/0x1340 drivers/block/loop.c:1852 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1604 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_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0d -> 0x0e Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13397 Comm: syz-executor.1 Tainted: G W 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop1: detected capacity change from 0 to 512 EXT4-fs (loop1): inodes count not valid: 184549408 vs 32