================================================================== BUG: KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block read to 0xffff88823fffa8d0 of 8 bytes by task 29148 on cpu 1: update_cached_migrate mm/compaction.c:424 [inline] isolate_migratepages_block+0x2770/0x2ba0 mm/compaction.c:1184 isolate_migratepages mm/compaction.c:1952 [inline] compact_zone+0x18f9/0x2340 mm/compaction.c:2397 compact_zone_order mm/compaction.c:2554 [inline] try_to_compact_pages+0x39b/0x930 mm/compaction.c:2617 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:4534 __alloc_pages_slowpath+0x232/0xdc0 mm/page_alloc.c:5143 __alloc_pages+0x25d/0x340 mm/page_alloc.c:5605 alloc_pages+0x3e1/0x4e0 vm_area_alloc_pages mm/vmalloc.c:2957 [inline] __vmalloc_area_node mm/vmalloc.c:3033 [inline] __vmalloc_node_range+0x6d2/0xeb0 mm/vmalloc.c:3205 kvmalloc_node+0x121/0x160 mm/util.c:628 kvmalloc include/linux/slab.h:737 [inline] kvmalloc_array include/linux/slab.h:755 [inline] kvcalloc include/linux/slab.h:760 [inline] xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:680 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline] do_ipt_set_ctl+0x13d1/0x1710 net/ipv4/netfilter/ip_tables.c:1629 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1460 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2820 ipv6_setsockopt+0xfc/0x130 net/ipv6/ipv6_sockglue.c:1006 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271 __do_sys_setsockopt net/socket.c:2282 [inline] __se_sys_setsockopt net/socket.c:2279 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd write to 0xffff88823fffa8d0 of 8 bytes by task 29149 on cpu 0: update_cached_migrate mm/compaction.c:425 [inline] isolate_migratepages_block+0x2794/0x2ba0 mm/compaction.c:1184 isolate_migratepages mm/compaction.c:1952 [inline] compact_zone+0x18f9/0x2340 mm/compaction.c:2397 compact_zone_order mm/compaction.c:2554 [inline] try_to_compact_pages+0x39b/0x930 mm/compaction.c:2617 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:4534 __alloc_pages_slowpath+0x232/0xdc0 mm/page_alloc.c:5143 __alloc_pages+0x25d/0x340 mm/page_alloc.c:5605 alloc_pages+0x3e1/0x4e0 vm_area_alloc_pages mm/vmalloc.c:2957 [inline] __vmalloc_area_node mm/vmalloc.c:3033 [inline] __vmalloc_node_range+0x6d2/0xeb0 mm/vmalloc.c:3205 kvmalloc_node+0x121/0x160 mm/util.c:628 kvmalloc include/linux/slab.h:737 [inline] kvmalloc_array include/linux/slab.h:755 [inline] kvcalloc include/linux/slab.h:760 [inline] xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:680 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline] do_ipt_set_ctl+0x13d1/0x1710 net/ipv4/netfilter/ip_tables.c:1629 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1460 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2820 ipv6_setsockopt+0xfc/0x130 net/ipv6/ipv6_sockglue.c:1006 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271 __do_sys_setsockopt net/socket.c:2282 [inline] __se_sys_setsockopt net/socket.c:2279 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x000000000008ba00 -> 0x000000000008d400 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 29149 Comm: syz-executor.2 Not tainted 6.3.0-rc7-syzkaller-00191-g622322f53c6d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================