================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0005596bd8 of 8 bytes by task 30089 on cpu 0: page_cache_delete mm/filemap.c:144 [inline] __filemap_remove_folio+0x1ae/0x2c0 mm/filemap.c:224 filemap_remove_folio+0x6b/0x1c0 mm/filemap.c:253 truncate_inode_folio+0x42/0x50 mm/truncate.c:176 shmem_undo_range+0x25d/0xa80 mm/shmem.c:1121 shmem_truncate_range mm/shmem.c:1237 [inline] shmem_evict_inode+0x13b/0x520 mm/shmem.c:1365 evict+0x2de/0x550 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput+0x42a/0x5b0 fs/inode.c:1924 dentry_unlink_inode+0x24f/0x260 fs/dcache.c:457 __dentry_kill+0x18b/0x4c0 fs/dcache.c:660 dput+0x5c/0xd0 fs/dcache.c:902 __fput+0x428/0x640 fs/file_table.c:473 ____fput+0x1c/0x30 fs/file_table.c:493 task_work_run+0x13c/0x1b0 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1a0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0005596bd8 of 8 bytes by task 30093 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:701 folio_evictable mm/internal.h:480 [inline] evict_folios+0x2592/0x2fb0 mm/vmscan.c:4708 try_to_shrink_lruvec+0x405/0x590 mm/vmscan.c:4859 lru_gen_shrink_lruvec mm/vmscan.c:5008 [inline] shrink_lruvec+0x220/0x1970 mm/vmscan.c:5753 shrink_node_memcgs mm/vmscan.c:5989 [inline] shrink_node+0x60b/0x1da0 mm/vmscan.c:6030 shrink_zones mm/vmscan.c:6274 [inline] do_try_to_free_pages+0x3c6/0xc10 mm/vmscan.c:6336 try_to_free_mem_cgroup_pages+0x1e6/0x4a0 mm/vmscan.c:6664 try_charge_memcg+0x3ab/0x890 mm/memcontrol.c:2304 obj_cgroup_charge_pages+0xc0/0x1a0 mm/memcontrol.c:2695 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2739 __alloc_frozen_pages_noprof+0x1a6/0x360 mm/page_alloc.c:4987 alloc_pages_mpol+0xb6/0x260 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0xe8/0x130 mm/mempolicy.c:2392 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x6ea/0xe80 mm/vmalloc.c:3844 __kvmalloc_node_noprof+0x311/0x520 mm/slub.c:5048 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x273/0x730 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x3b6/0x970 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4ba/0x580 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x12f/0x230 net/netlink/af_netlink.c:2534 nfnetlink_rcv+0x187/0x1610 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x605/0x6c0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x609/0x720 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:727 ____sys_sendmsg+0x350/0x4e0 net/socket.c:2566 ___sys_sendmsg net/socket.c:2620 [inline] __sys_sendmsg+0x1a0/0x240 net/socket.c:2652 __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2655 x64_sys_call+0x26f3/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff8881186b1360 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 30093 Comm: syz.7.7957 Not tainted 6.15.0-rc2-syzkaller-00488-g6fea5fabd332 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================