================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea00041d15d8 of 8 bytes by task 9058 on cpu 1: page_cache_delete mm/filemap.c:144 [inline] __filemap_remove_folio+0x1a5/0x2a0 mm/filemap.c:224 filemap_remove_folio+0x6d/0x1d0 mm/filemap.c:253 truncate_inode_folio+0x42/0x50 mm/truncate.c:176 shmem_undo_range+0x244/0xa80 mm/shmem.c:1121 shmem_fallocate+0x799/0x840 mm/shmem.c:3753 vfs_fallocate+0x410/0x450 fs/open.c:338 ksys_fallocate fs/open.c:362 [inline] __do_sys_fallocate fs/open.c:367 [inline] __se_sys_fallocate fs/open.c:365 [inline] __x64_sys_fallocate+0x7a/0xd0 fs/open.c:365 x64_sys_call+0x2b88/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea00041d15d8 of 8 bytes by task 9064 on cpu 0: folio_mapping+0xa1/0x120 mm/util.c:701 folio_evictable mm/internal.h:475 [inline] move_folios_to_lru+0x132/0x6a0 mm/vmscan.c:1918 evict_folios+0x300b/0x33d0 mm/vmscan.c:4728 try_to_shrink_lruvec+0x45a/0x7e0 mm/vmscan.c:4859 lru_gen_shrink_lruvec mm/vmscan.c:5008 [inline] shrink_lruvec+0x22e/0x1a40 mm/vmscan.c:5753 shrink_node_memcgs mm/vmscan.c:5989 [inline] shrink_node+0x686/0x2110 mm/vmscan.c:6030 shrink_zones mm/vmscan.c:6274 [inline] do_try_to_free_pages+0x3f6/0xcd0 mm/vmscan.c:6336 try_to_free_mem_cgroup_pages+0x1ab/0x410 mm/vmscan.c:6664 try_charge_memcg+0x3ab/0x870 mm/memcontrol.c:2304 obj_cgroup_charge_pages+0xb7/0x1a0 mm/memcontrol.c:2695 __memcg_kmem_charge_page+0x9f/0x170 mm/memcontrol.c:2739 __alloc_frozen_pages_noprof+0x188/0x360 mm/page_alloc.c:4987 alloc_pages_mpol+0xb3/0x250 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0x90/0x130 mm/mempolicy.c:2392 vm_area_alloc_pages mm/vmalloc.c:3592 [inline] __vmalloc_area_node mm/vmalloc.c:3670 [inline] __vmalloc_node_range_noprof+0x6a4/0xdf0 mm/vmalloc.c:3845 __kvmalloc_node_noprof+0x2f3/0x4d0 mm/slub.c:5034 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x282/0x740 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x3c9/0x960 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4c3/0x590 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x120/0x220 net/netlink/af_netlink.c:2534 nfnetlink_rcv+0x16b/0x1690 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x59e/0x670 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x58b/0x6b0 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x142/0x180 net/socket.c:727 ____sys_sendmsg+0x31e/0x4e0 net/socket.c:2566 ___sys_sendmsg+0x17b/0x1d0 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0xd4/0x160 net/socket.c:2655 x64_sys_call+0x2999/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff88810c3d07c0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9064 Comm: syz.7.2087 Tainted: G W 6.15.0-rc5-syzkaller-00353-gcd802e7e5f1e #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 ================================================================== syz.7.2087 (9064) used greatest stack depth: 6080 bytes left