================================================================== BUG: KCSAN: data-race in drain_all_stock / drain_stock write to 0xffff888237d2a328 of 8 bytes by task 7878 on cpu 1: drain_stock+0x88/0xf0 mm/memcontrol.c:2306 __refill_stock+0x30/0xb0 mm/memcontrol.c:2342 refill_stock mm/memcontrol.c:2357 [inline] obj_cgroup_uncharge_pages+0xfb/0x1a0 mm/memcontrol.c:3117 __memcg_kmem_uncharge_page+0x53/0x100 mm/memcontrol.c:3190 free_pages_prepare mm/page_alloc.c:1292 [inline] free_unref_page_prepare+0x65/0x2a0 mm/page_alloc.c:2564 free_unref_page+0x34/0x170 mm/page_alloc.c:2659 vfree+0x27c/0x420 mm/vmalloc.c:2798 __vmalloc_area_node mm/vmalloc.c:3149 [inline] __vmalloc_node_range+0xde0/0xea0 mm/vmalloc.c:3266 kvmalloc_node+0x121/0x160 mm/util.c:629 kvmalloc include/linux/slab.h:697 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/arp_tables.c:970 [inline] do_arpt_set_ctl+0x615/0x1390 net/ipv4/netfilter/arp_tables.c:1421 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1467 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3657 __sys_setsockopt+0x1c3/0x230 net/socket.c:2273 __do_sys_setsockopt net/socket.c:2284 [inline] __se_sys_setsockopt net/socket.c:2281 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2281 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 read to 0xffff888237d2a328 of 8 bytes by task 7880 on cpu 0: drain_all_stock+0xba/0x2d0 mm/memcontrol.c:2386 try_charge_memcg+0x6c2/0xd20 mm/memcontrol.c:2732 obj_cgroup_charge_pages+0xab/0x130 mm/memcontrol.c:3138 __memcg_kmem_charge_page+0x1d5/0x2c0 mm/memcontrol.c:3164 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4785 alloc_pages+0x3e1/0x4e0 vm_area_alloc_pages mm/vmalloc.c:3009 [inline] __vmalloc_area_node mm/vmalloc.c:3085 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3266 kvmalloc_node+0x121/0x160 mm/util.c:629 kvmalloc include/linux/slab.h:697 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/arp_tables.c:970 [inline] do_arpt_set_ctl+0x615/0x1390 net/ipv4/netfilter/arp_tables.c:1421 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1467 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3657 __sys_setsockopt+0x1c3/0x230 net/socket.c:2273 __do_sys_setsockopt net/socket.c:2284 [inline] __se_sys_setsockopt net/socket.c:2281 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2281 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: 0xffff88813b872000 -> 0xffff88813b91e000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 7880 Comm: syz-executor.3 Not tainted 6.4.0-rc7-syzkaller-00234-g547cc9be86f4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 ==================================================================