================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004b738d8 of 8 bytes by task 31872 on cpu 0: page_cache_delete_batch mm/filemap.c:317 [inline] delete_from_page_cache_batch+0x309/0x710 mm/filemap.c:343 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:359 truncate_inode_pages mm/truncate.c:439 [inline] truncate_pagecache+0x53/0x70 mm/truncate.c:732 ext4_setattr+0xa07/0xeb0 fs/ext4/inode.c:5441 notify_change+0x814/0x8a0 fs/attr.c:497 do_truncate+0x116/0x160 fs/open.c:65 handle_truncate fs/namei.c:3308 [inline] do_open fs/namei.c:3654 [inline] path_openat+0x1a20/0x1da0 fs/namei.c:3807 do_filp_open+0xf7/0x200 fs/namei.c:3834 do_sys_openat2+0xab/0x120 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1431 x64_sys_call+0x1057/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004b738d8 of 8 bytes by task 31860 on cpu 1: folio_mapping+0x97/0x110 mm/util.c:799 folio_evictable mm/internal.h:353 [inline] lru_add_fn+0x8d/0x430 mm/swap.c:184 folio_batch_move_lru+0x20c/0x2c0 mm/swap.c:220 lru_add_drain_cpu+0x77/0x260 mm/swap.c:657 lru_add_drain mm/swap.c:757 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1081 folio_batch_release include/linux/pagevec.h:101 [inline] filemap_splice_read+0x871/0x920 mm/filemap.c:2949 ext4_file_splice_read+0x95/0xc0 fs/ext4/file.c:158 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x26c/0x670 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3ab/0x960 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1348 x64_sys_call+0x2c9f/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:41 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff888107c27df0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31860 Comm: syz-executor.3 Not tainted 6.10.0-rc3-syzkaller-00021-g2ef5971ff345 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================