================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004f72518 of 8 bytes by task 1020 on cpu 1: page_cache_delete_batch mm/filemap.c:304 [inline] delete_from_page_cache_batch+0x301/0x760 mm/filemap.c:330 truncate_inode_pages_range+0x305/0x8b0 mm/truncate.c:379 truncate_inode_pages mm/truncate.c:461 [inline] truncate_pagecache+0x4f/0x70 mm/truncate.c:768 ext4_setattr+0x7a0/0xb30 fs/ext4/inode.c:5452 notify_change+0x924/0xbf0 fs/attr.c:410 do_truncate+0xf7/0x140 fs/open.c:65 handle_truncate fs/namei.c:3132 [inline] do_open fs/namei.c:3480 [inline] path_openat+0x1873/0x1f30 fs/namei.c:3609 do_filp_open+0x105/0x220 fs/namei.c:3636 do_sys_openat2+0xb5/0x2b0 fs/open.c:1214 do_sys_open fs/open.c:1230 [inline] __do_sys_creat fs/open.c:1306 [inline] __se_sys_creat fs/open.c:1300 [inline] __x64_sys_creat+0x62/0x80 fs/open.c:1300 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 0xffffea0004f72518 of 8 bytes by task 1018 on cpu 0: folio_mapping+0x92/0x120 mm/util.c:715 page_mapping+0x37/0x50 mm/folio-compat.c:13 page_evictable mm/internal.h:133 [inline] move_pages_to_lru+0x13d/0x7c0 mm/vmscan.c:2321 shrink_inactive_list+0x414/0x730 mm/vmscan.c:2440 shrink_list mm/vmscan.c:2664 [inline] shrink_lruvec+0x3c9/0x710 mm/vmscan.c:2983 shrink_node_memcgs+0x23e/0x410 mm/vmscan.c:3172 shrink_node+0x8f6/0x1190 mm/vmscan.c:3295 shrink_zones+0x2d1/0x5e0 mm/vmscan.c:3532 do_try_to_free_pages+0x181/0x720 mm/vmscan.c:3590 try_to_free_mem_cgroup_pages+0x1cb/0x420 mm/vmscan.c:3904 reclaim_high mm/memcontrol.c:2300 [inline] mem_cgroup_handle_over_high+0x15b/0x480 mm/memcontrol.c:2484 tracehook_notify_resume include/linux/tracehook.h:197 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x139/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0xffff888106351280 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1018 Comm: syz-executor.1 Not tainted 5.17.0-rc4-syzkaller-00054-gf71077a4d84b-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================