================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea00049827d8 of 8 bytes by task 8652 on cpu 1: page_cache_delete mm/filemap.c:143 [inline] __filemap_remove_folio+0x1b8/0x2d0 mm/filemap.c:223 filemap_remove_folio+0x6c/0x1e0 mm/filemap.c:255 truncate_inode_folio mm/truncate.c:195 [inline] truncate_inode_pages_range+0x582/0x6a0 mm/truncate.c:415 truncate_inode_pages mm/truncate.c:439 [inline] truncate_pagecache+0x53/0x70 mm/truncate.c:732 ext4_setattr+0xa03/0xea0 fs/ext4/inode.c:5478 notify_change+0x866/0x8e0 fs/attr.c:499 do_truncate+0x116/0x150 fs/open.c:66 handle_truncate fs/namei.c:3299 [inline] do_open fs/namei.c:3645 [inline] path_openat+0x19b9/0x1d30 fs/namei.c:3798 do_filp_open+0xf6/0x200 fs/namei.c:3825 do_sys_openat2+0xab/0x110 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1430 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffea00049827d8 of 8 bytes by task 8627 on cpu 0: folio_mapping+0x92/0x110 mm/util.c:782 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+0x7f8/0x8f0 mm/filemap.c:2927 ext4_file_splice_read+0x95/0xb0 fs/ext4/file.c:158 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x268/0x650 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0xd7/0x150 fs/splice.c:1233 do_sendfile+0x3b9/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 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0xffff8881069402a0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8627 Comm: syz-executor.0 Not tainted 6.8.0-rc1-syzkaller-00037-g443b349019f2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================