loop1: detected capacity change from 0 to 512 ================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea00041c8b18 of 8 bytes by task 29998 on cpu 0: page_cache_delete_batch mm/filemap.c:310 [inline] delete_from_page_cache_batch+0x320/0x760 mm/filemap.c:336 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:368 truncate_inode_pages+0x24/0x30 mm/truncate.c:448 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x26c/0x290 block/bdev.c:152 sb_set_blocksize block/bdev.c:161 [inline] sb_min_blocksize+0x83/0x110 block/bdev.c:177 ext4_load_super fs/ext4/super.c:5030 [inline] __ext4_fill_super fs/ext4/super.c:5227 [inline] ext4_fill_super+0x39a/0x3940 fs/ext4/super.c:5703 get_tree_bdev+0x272/0x300 fs/super.c:1577 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x51/0x1b0 fs/super.c:1750 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea00041c8b18 of 8 bytes by task 30003 on cpu 1: folio_mapping+0x92/0x110 mm/util.c:772 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x440 mm/swap.c:181 folio_batch_move_lru+0x21e/0x2f0 mm/swap.c:217 lru_add_drain_cpu+0x77/0x270 mm/swap.c:652 lru_add_drain mm/swap.c:752 [inline] __folio_batch_release+0x5f/0xe0 mm/swap.c:1059 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x22e/0x6a0 mm/truncate.c:371 truncate_inode_pages+0x24/0x30 mm/truncate.c:448 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x26c/0x290 block/bdev.c:152 sb_set_blocksize block/bdev.c:161 [inline] sb_min_blocksize+0x83/0x110 block/bdev.c:177 ext4_load_super fs/ext4/super.c:5030 [inline] __ext4_fill_super fs/ext4/super.c:5227 [inline] ext4_fill_super+0x39a/0x3940 fs/ext4/super.c:5703 get_tree_bdev+0x272/0x300 fs/super.c:1577 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5735 vfs_get_tree+0x51/0x1b0 fs/super.c:1750 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff888100481e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 30003 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ================================================================== EXT4-fs: Journaled quota options ignored when QUOTA feature is enabled EXT4-fs (loop1): feature flags set on rev 0 fs, running e2fsck is recommended [EXT4 FS bs=4096, gc=1, bpg=3008, ipg=32, mo=4000e018, mo2=0000] EXT4-fs (loop1): 1 truncate cleaned up