================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0005065658 of 8 bytes by task 21322 on cpu 0: page_cache_delete mm/filemap.c:143 [inline] __filemap_remove_folio+0x1b7/0x2c0 mm/filemap.c:219 filemap_remove_folio+0x69/0x210 mm/filemap.c:251 truncate_inode_folio+0x14c/0x160 mm/truncate.c:223 truncate_inode_pages_range+0x6a2/0x8b0 mm/truncate.c:435 truncate_inode_pages+0x20/0x30 mm/truncate.c:461 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x24e/0x270 block/bdev.c:153 sb_set_blocksize block/bdev.c:162 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:178 __ext4_fill_super+0x10e/0x59b0 fs/ext4/super.c:4380 ext4_fill_super+0xfd/0x2f0 fs/ext4/super.c:5554 get_tree_bdev+0x2c2/0x3d0 fs/super.c:1292 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 do_new_mount fs/namespace.c:2994 [inline] path_mount+0x11cf/0x1c40 fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3522 __x64_sys_mount+0x63/0x70 fs/namespace.c:3522 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 0xffffea0005065658 of 8 bytes by task 21329 on cpu 1: folio_mapping+0x92/0x120 mm/util.c:715 folio_evictable mm/internal.h:121 [inline] __pagevec_lru_add_fn+0x81/0x380 mm/swap.c:1043 __pagevec_lru_add+0x1c3/0x270 mm/swap.c:1071 lru_add_drain_cpu+0x6a/0x260 mm/swap.c:613 lru_add_drain+0x21/0x60 mm/swap.c:717 free_pages_and_swap_cache+0x1d/0x200 mm/swap_state.c:317 tlb_batch_pages_flush mm/mmu_gather.c:50 [inline] tlb_flush_mmu_free mm/mmu_gather.c:243 [inline] tlb_flush_mmu+0x597/0x5f0 mm/mmu_gather.c:250 zap_pte_range+0xe56/0x10e0 mm/memory.c:1441 zap_pmd_range mm/memory.c:1490 [inline] zap_pud_range mm/memory.c:1519 [inline] zap_p4d_range mm/memory.c:1540 [inline] unmap_page_range+0x2dc/0x3d0 mm/memory.c:1561 unmap_single_vma+0x157/0x210 mm/memory.c:1606 unmap_vmas+0xd0/0x180 mm/memory.c:1638 exit_mmap+0x261/0x4b0 mm/mmap.c:3178 __mmput+0x27/0x1b0 kernel/fork.c:1114 mmput+0x3d/0x50 kernel/fork.c:1135 exit_mm+0xdb/0x170 kernel/exit.c:507 do_exit+0x569/0x16a0 kernel/exit.c:793 __x64_sys_exit_group+0x0/0x20 kernel/exit.c:935 __do_sys_exit_group+0xb/0x10 kernel/exit.c:946 __se_sys_exit_group+0x5/0x10 kernel/exit.c:944 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:944 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: 0xffff888100432bb0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21329 Comm: syz-executor.2 Not tainted 5.17.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================