================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004a15618 of 8 bytes by task 16541 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 fs/open.c:65 [inline] do_sys_ftruncate+0x323/0x430 fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __x64_sys_ftruncate+0x2f/0x40 fs/open.c:202 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 0xffffea0004a15618 of 8 bytes by task 16539 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: 0xffff88813a14db60 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 16539 Comm: syz-executor.1 Not tainted 5.17.0-rc5-syzkaller-00306-g2293be58d6a1-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================