================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea000439d398 of 8 bytes by task 13986 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 mm/truncate.c:448 [inline] truncate_pagecache+0x53/0x70 mm/truncate.c:741 ext4_setattr+0xa03/0xeb0 fs/ext4/inode.c:5462 notify_change+0x866/0x8e0 fs/attr.c:499 do_truncate+0x116/0x150 fs/open.c:66 handle_truncate fs/namei.c:3298 [inline] do_open fs/namei.c:3643 [inline] path_openat+0x1993/0x1d10 fs/namei.c:3796 do_filp_open+0xf6/0x200 fs/namei.c:3823 do_sys_openat2+0xab/0x110 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1448 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 0xffffea000439d398 of 8 bytes by task 13993 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] filemap_splice_read+0x6c0/0x7f0 mm/filemap.c:2970 ext4_file_splice_read+0x95/0xb0 fs/ext4/file.c:158 vfs_splice_read fs/splice.c:993 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1069 do_splice_direct+0x10d/0x190 fs/splice.c:1194 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 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: 0xffff8881069554e0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 13993 Comm: syz-executor.2 Not tainted 6.6.0-rc2-syzkaller-00048-g42dc814987c1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 ==================================================================