================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats / tick_do_update_jiffies64 read-write to 0xffffffff85a079c0 of 8 bytes by interrupt on cpu 1: tick_do_update_jiffies64+0x112/0x1b0 kernel/time/tick-sched.c:118 tick_sched_do_timer kernel/time/tick-sched.c:210 [inline] tick_sched_timer+0x7b/0x2c0 kernel/time/tick-sched.c:1485 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline] __sysvec_apic_timer_interrupt+0x52/0x190 arch/x86/kernel/apic/apic.c:1080 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:705 page_zonenum include/linux/mmzone.h:1085 [inline] page_zone include/linux/mm.h:1844 [inline] free_unref_page+0x81/0x170 mm/page_alloc.c:2424 vfree+0x27c/0x410 mm/vmalloc.c:2842 __vmalloc_area_node mm/vmalloc.c:3203 [inline] __vmalloc_node_range+0xddb/0xea0 mm/vmalloc.c:3320 kvmalloc_node+0x121/0x160 mm/util.c:632 kvmalloc include/linux/slab.h:737 [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+0x634/0x13b0 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:1429 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3673 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3699 __sys_setsockopt+0x1d7/0x240 net/socket.c:2325 __do_sys_setsockopt net/socket.c:2336 [inline] __se_sys_setsockopt net/socket.c:2333 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2333 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 0xffffffff85a079c0 of 8 bytes by task 17529 on cpu 0: do_flush_stats mm/memcontrol.c:653 [inline] mem_cgroup_flush_stats+0x5d/0xd0 mm/memcontrol.c:664 prepare_scan_count mm/vmscan.c:2926 [inline] shrink_node+0x304/0x15c0 mm/vmscan.c:6538 shrink_zones mm/vmscan.c:6779 [inline] do_try_to_free_pages+0x43d/0xce0 mm/vmscan.c:6841 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7156 try_charge_memcg+0x280/0xd30 mm/memcontrol.c:2691 obj_cgroup_charge_pages+0xab/0x130 mm/memcontrol.c:3105 __memcg_kmem_charge_page+0x1d5/0x2c0 mm/memcontrol.c:3131 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4443 alloc_pages+0x3e1/0x4e0 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:632 kvmalloc include/linux/slab.h:737 [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+0x634/0x13b0 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:1429 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3673 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3699 __sys_setsockopt+0x1d7/0x240 net/socket.c:2325 __do_sys_setsockopt net/socket.c:2336 [inline] __se_sys_setsockopt net/socket.c:2333 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2333 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: 0x000000010000bd59 -> 0x000000010000bd5a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 17529 Comm: syz-executor.5 Not tainted 6.6.0-rc7-syzkaller-00195-g2af9b20dbb39 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ==================================================================