================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea000511acd8 of 8 bytes by task 21280 on cpu 0: page_cache_delete_batch mm/filemap.c:322 [inline] delete_from_page_cache_batch+0x35c/0x780 mm/filemap.c:353 truncate_inode_pages_range+0x1d5/0xa00 mm/truncate.c:336 truncate_inode_pages mm/truncate.c:435 [inline] truncate_pagecache+0x4f/0x70 mm/truncate.c:750 ext4_setattr+0xa5f/0xf20 fs/ext4/inode.c:5468 notify_change+0x8a3/0xac0 fs/attr.c:410 do_truncate+0xf7/0x140 fs/open.c:64 handle_truncate fs/namei.c:3082 [inline] do_open fs/namei.c:3430 [inline] path_openat+0x191f/0x1eb0 fs/namei.c:3559 do_filp_open+0x105/0x220 fs/namei.c:3586 do_sys_openat2+0xb5/0x2b0 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_creat fs/open.c:1304 [inline] __se_sys_creat fs/open.c:1298 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1298 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 0xffffea000511acd8 of 8 bytes by task 21258 on cpu 1: folio_mapping+0x92/0x120 mm/util.c:722 folio_evictable mm/internal.h:112 [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 follow_page_pte mm/gup.c:590 [inline] follow_pmd_mask mm/gup.c:668 [inline] follow_pud_mask mm/gup.c:751 [inline] follow_p4d_mask mm/gup.c:777 [inline] follow_page_mask+0xdc5/0x1000 mm/gup.c:836 __get_user_pages+0x339/0xc80 mm/gup.c:1158 populate_vma_page_range mm/gup.c:1492 [inline] __mm_populate+0x24d/0x370 mm/gup.c:1601 mm_populate include/linux/mm.h:2734 [inline] vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524 ksys_mmap_pgoff+0xc2/0x320 mm/mmap.c:1623 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: 0xffff88813c492400 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21258 Comm: syz-executor.5 Not tainted 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================