================================================================== BUG: KCSAN: data-race in compact_zone / isolate_migratepages_block write to 0xffff88823fffab90 of 8 bytes by task 26989 on cpu 0: update_cached_migrate mm/compaction.c:504 [inline] isolate_migratepages_block+0x24a5/0x2740 mm/compaction.c:1358 isolate_migratepages mm/compaction.c:2194 [inline] compact_zone+0x1e0f/0x2910 mm/compaction.c:2641 compact_zone_order mm/compaction.c:2806 [inline] try_to_compact_pages+0x388/0x920 mm/compaction.c:2862 __alloc_pages_direct_compact+0x6f/0x1e0 mm/page_alloc.c:3655 __alloc_pages_slowpath+0x236/0xd70 mm/page_alloc.c:4250 __alloc_pages_noprof+0x26d/0x360 mm/page_alloc.c:4713 alloc_pages_mpol_noprof+0xb1/0x1e0 mm/mempolicy.c:2263 alloc_pages_noprof+0xe1/0x100 mm/mempolicy.c:2343 vm_area_alloc_pages mm/vmalloc.c:3584 [inline] __vmalloc_area_node mm/vmalloc.c:3660 [inline] __vmalloc_node_range_noprof+0x719/0xef0 mm/vmalloc.c:3841 __kvmalloc_node_noprof+0x121/0x170 mm/util.c:675 kvmalloc_array_node_noprof include/linux/slab.h:833 [inline] xt_alloc_entry_offsets+0x47/0x50 net/netfilter/x_tables.c:968 translate_table+0xa3/0xf70 net/ipv4/netfilter/ip_tables.c:678 do_replace net/ipv4/netfilter/ip_tables.c:1137 [inline] do_ipt_set_ctl+0x7bd/0x8b0 net/ipv4/netfilter/ip_tables.c:1635 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xea/0x100 net/ipv4/ip_sockglue.c:1424 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:3768 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3735 smc_setsockopt+0x182/0x7a0 net/smc/af_smc.c:3072 do_sock_setsockopt net/socket.c:2324 [inline] __sys_setsockopt+0x1d8/0x250 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2356 [inline] __se_sys_setsockopt net/socket.c:2353 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2353 x64_sys_call+0x2a0e/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88823fffab90 of 8 bytes by task 26981 on cpu 1: compact_zone+0x2374/0x2910 mm/compaction.c:2650 compact_zone_order mm/compaction.c:2806 [inline] try_to_compact_pages+0x388/0x920 mm/compaction.c:2862 __alloc_pages_direct_compact+0x6f/0x1e0 mm/page_alloc.c:3655 __alloc_pages_slowpath+0x236/0xd70 mm/page_alloc.c:4250 __alloc_pages_noprof+0x26d/0x360 mm/page_alloc.c:4713 alloc_pages_mpol_noprof+0xb1/0x1e0 mm/mempolicy.c:2263 alloc_pages_noprof+0xe1/0x100 mm/mempolicy.c:2343 vm_area_alloc_pages mm/vmalloc.c:3584 [inline] __vmalloc_area_node mm/vmalloc.c:3660 [inline] __vmalloc_node_range_noprof+0x719/0xef0 mm/vmalloc.c:3841 __kvmalloc_node_noprof+0x121/0x170 mm/util.c:675 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:256 hash_netiface_create+0x273/0x730 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x359/0x8a0 net/netfilter/ipset/ip_set_core.c:1104 nfnetlink_rcv_msg+0x4a9/0x570 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2550 nfnetlink_rcv+0x16c/0x15b0 net/netfilter/nfnetlink.c:664 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x593/0x670 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 ____sys_sendmsg+0x312/0x410 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x1e9/0x280 net/socket.c:2680 __do_sys_sendmsg net/socket.c:2689 [inline] __se_sys_sendmsg net/socket.c:2687 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2687 x64_sys_call+0x26f8/0x2e00 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000001eae00 -> 0x00000000001ed800 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 26981 Comm: syz.4.4267 Not tainted 6.11.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 ================================================================== syz.4.4267 (26981) used greatest stack depth: 6928 bytes left