================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete_batch write to 0xffffea0004d2bc58 of 8 bytes by task 8372 on cpu 0: page_cache_delete_batch+0x1ab/0x4b0 mm/filemap.c:308 delete_from_page_cache_batch+0x190/0x2a0 mm/filemap.c:334 truncate_inode_pages_range+0x3ca/0xae0 mm/truncate.c:370 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:77 [inline] set_blocksize+0x24e/0x270 block/bdev.c:153 sb_set_blocksize+0x2c/0xa0 block/bdev.c:162 __ext4_fill_super+0x1a04/0x5a00 fs/ext4/super.c:4822 ext4_fill_super+0x10b/0x2f0 fs/ext4/super.c:5587 get_tree_bdev+0x2c2/0x3d0 fs/super.c:1292 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x11cf/0x1c40 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffea0004d2bc58 of 8 bytes by task 8360 on cpu 1: folio_mapping+0x92/0x120 mm/util.c:766 folio_evictable mm/internal.h:121 [inline] __pagevec_lru_add_fn+0x134/0x520 mm/swap.c:1024 __pagevec_lru_add+0x1c6/0x320 mm/swap.c:1060 folio_add_lru+0x115/0x160 mm/swap.c:467 lru_cache_add+0x3b/0xe0 mm/folio-compat.c:109 shmem_getpage_gfp+0x912/0x1610 mm/shmem.c:1913 shmem_fault+0xd1/0x3c0 mm/shmem.c:2086 __do_fault mm/memory.c:3915 [inline] do_read_fault+0x2e0/0x5c0 mm/memory.c:4240 do_fault mm/memory.c:4369 [inline] handle_pte_fault mm/memory.c:4627 [inline] __handle_mm_fault mm/memory.c:4763 [inline] handle_mm_fault+0x68b/0xca0 mm/memory.c:4861 faultin_page mm/gup.c:878 [inline] __get_user_pages+0x322/0xb70 mm/gup.c:1099 populate_vma_page_range mm/gup.c:1442 [inline] __mm_populate+0x27a/0x390 mm/gup.c:1555 mm_populate include/linux/mm.h:2701 [inline] vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524 ksys_mmap_pgoff+0xc2/0x320 mm/mmap.c:1628 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff888101bbabf0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8360 Comm: syz-executor.3 Not tainted 5.17.0-syzkaller-13993-g88e6c0207623-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================