================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea00051fb4d8 of 8 bytes by task 25826 on cpu 0: 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:3756 vfs_fallocate+0x410/0x450 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0x7a/0xd0 fs/open.c:368 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+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea00051fb4d8 of 8 bytes by task 25814 on cpu 1: folio_mapping+0xa1/0x120 mm/util.c:701 folio_evictable mm/internal.h:478 [inline] move_folios_to_lru+0x128/0x6a0 mm/vmscan.c:1932 evict_folios+0x3013/0x33d0 mm/vmscan.c:4761 try_to_shrink_lruvec+0x45a/0x7e0 mm/vmscan.c:4892 lru_gen_shrink_lruvec mm/vmscan.c:5041 [inline] shrink_lruvec+0x22e/0x1b40 mm/vmscan.c:5797 shrink_node_memcgs mm/vmscan.c:6033 [inline] shrink_node+0x686/0x2120 mm/vmscan.c:6074 shrink_zones mm/vmscan.c:6318 [inline] do_try_to_free_pages+0x3f6/0xcd0 mm/vmscan.c:6380 try_to_free_mem_cgroup_pages+0x1ab/0x410 mm/vmscan.c:6708 try_charge_memcg+0x358/0x9e0 mm/memcontrol.c:2362 obj_cgroup_charge_pages+0xa6/0x150 mm/memcontrol.c:2803 __memcg_kmem_charge_page+0x9f/0x170 mm/memcontrol.c:2847 __alloc_frozen_pages_noprof+0x188/0x360 mm/page_alloc.c:4976 alloc_pages_mpol+0xb3/0x250 mm/mempolicy.c:2419 alloc_frozen_pages_noprof mm/mempolicy.c:2490 [inline] alloc_pages_noprof+0x90/0x130 mm/mempolicy.c:2510 vm_area_alloc_pages mm/vmalloc.c:3634 [inline] __vmalloc_area_node mm/vmalloc.c:3712 [inline] __vmalloc_node_range_noprof+0x6f2/0xe00 mm/vmalloc.c:3885 __kvmalloc_node_noprof+0x30f/0x4e0 mm/slub.c:5037 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+0x4c6/0x590 net/netfilter/nfnetlink.c:303 netlink_rcv_skb+0x120/0x220 net/netlink/af_netlink.c:2534 nfnetlink_rcv+0x16b/0x1690 net/netfilter/nfnetlink.c:668 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x5a1/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+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff88810465bc10 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 25814 Comm: syz.5.15250 Tainted: G W 6.16.0-rc3-syzkaller-00190-g67a993863163 #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ================================================================== syz.5.15250 (25814) used greatest stack depth: 6056 bytes left