================================================================== BUG: KCSAN: data-race in do_try_to_free_pages / shrink_node write to 0xffff88813df82870 of 8 bytes by task 5991 on cpu 1: snapshot_refaults mm/vmscan.c:6164 [inline] do_try_to_free_pages+0x95f/0xce0 mm/vmscan.c:6226 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:6518 try_charge_memcg+0x280/0xd20 mm/memcontrol.c:2762 obj_cgroup_charge_pages+0xbd/0x1c0 mm/memcontrol.c:3275 __memcg_kmem_charge_page+0x9c/0x170 mm/memcontrol.c:3301 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4584 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:728 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1139 [inline] do_ip6t_set_ctl+0x633/0x17f0 net/ipv6/netfilter/ip6_tables.c:1636 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x11c/0x130 net/ipv6/ipv6_sockglue.c:997 rawv6_setsockopt+0x21e/0x410 net/ipv6/raw.c:1048 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3715 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+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff88813df82870 of 8 bytes by task 5985 on cpu 0: prepare_scan_control mm/vmscan.c:2250 [inline] shrink_node+0x3c3/0x15d0 mm/vmscan.c:5900 shrink_zones mm/vmscan.c:6141 [inline] do_try_to_free_pages+0x43d/0xce0 mm/vmscan.c:6203 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:6518 try_charge_memcg+0x280/0xd20 mm/memcontrol.c:2762 obj_cgroup_charge_pages+0xbd/0x1c0 mm/memcontrol.c:3275 __memcg_kmem_charge_page+0x9c/0x170 mm/memcontrol.c:3301 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4584 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:728 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1139 [inline] do_ip6t_set_ctl+0x633/0x17f0 net/ipv6/netfilter/ip6_tables.c:1636 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x11c/0x130 net/ipv6/ipv6_sockglue.c:997 rawv6_setsockopt+0x21e/0x410 net/ipv6/raw.c:1048 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3715 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+0x59/0x120 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000000087 -> 0x0000000000000089 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5985 Comm: syz-executor.4 Tainted: G W 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================