================================================================== BUG: KCSAN: data-race in compact_zone / compact_zone write to 0xffff88823fffad90 of 8 bytes by task 25032 on cpu 1: update_cached_migrate mm/compaction.c:473 [inline] isolate_migratepages mm/compaction.c:2047 [inline] compact_zone+0x1100/0x2720 mm/compaction.c:2508 compact_zone_order mm/compaction.c:2668 [inline] try_to_compact_pages+0x39b/0x930 mm/compaction.c:2729 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3525 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:4119 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4581 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320 kvmalloc_node+0x121/0x160 mm/util.c:642 kvmalloc include/linux/slab.h:738 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline] do_ipt_set_ctl+0x62f/0x1730 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1426 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711 do_sock_setsockopt net/socket.c:2311 [inline] __sys_setsockopt+0x1d4/0x240 net/socket.c:2334 __do_sys_setsockopt net/socket.c:2343 [inline] __se_sys_setsockopt net/socket.c:2340 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88823fffad90 of 8 bytes by task 25033 on cpu 0: update_cached_migrate mm/compaction.c:472 [inline] isolate_migratepages mm/compaction.c:2047 [inline] compact_zone+0x10db/0x2720 mm/compaction.c:2508 compact_zone_order mm/compaction.c:2668 [inline] try_to_compact_pages+0x39b/0x930 mm/compaction.c:2729 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3525 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:4119 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4581 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320 kvmalloc_node+0x121/0x160 mm/util.c:642 kvmalloc include/linux/slab.h:738 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline] do_ipt_set_ctl+0x62f/0x1730 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1426 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711 do_sock_setsockopt net/socket.c:2311 [inline] __sys_setsockopt+0x1d4/0x240 net/socket.c:2334 __do_sys_setsockopt net/socket.c:2343 [inline] __se_sys_setsockopt net/socket.c:2340 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000148e00 -> 0x0000000000167200 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 25033 Comm: syz-executor.4 Tainted: G W 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================