================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats / tick_do_update_jiffies64 read-write to 0xffffffff85a07980 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:199 [inline] tick_sched_timer+0x7e/0x2d0 kernel/time/tick-sched.c:1466 __run_hrtimer+0x132/0x420 kernel/time/hrtimer.c:1685 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline] hrtimer_interrupt+0x36e/0xa70 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0xa3/0x250 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x88/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 write_comp_data kernel/kcov.c:243 [inline] __sanitizer_cov_trace_const_cmp8+0x9a/0xa0 kernel/kcov.c:294 folio_memcg_kmem include/linux/memcontrol.h:554 [inline] folio_memcg include/linux/memcontrol.h:447 [inline] page_memcg include/linux/memcontrol.h:454 [inline] mod_memcg_page_state include/linux/memcontrol.h:971 [inline] __vmalloc_area_node mm/vmalloc.c:3005 [inline] __vmalloc_node_range+0xa02/0xef0 mm/vmalloc.c:3167 kvmalloc_node+0xf3/0x140 mm/util.c:601 kvmalloc include/linux/slab.h:731 [inline] xt_alloc_table_info+0x39/0x70 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x645/0x1790 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2724/0x2a90 net/ipv6/ipv6_sockglue.c:1026 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3505 __sys_setsockopt+0x212/0x2b0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff85a07980 of 8 bytes by task 22865 on cpu 0: __mem_cgroup_flush_stats mm/memcontrol.c:643 [inline] mem_cgroup_flush_stats+0x7f/0x110 mm/memcontrol.c:652 shrink_node+0x2fc/0x1110 mm/vmscan.c:3126 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3458 do_try_to_free_pages+0x165/0x720 mm/vmscan.c:3516 try_to_free_mem_cgroup_pages+0x1cd/0x420 mm/vmscan.c:3830 try_charge_memcg+0x270/0x960 mm/memcontrol.c:2614 obj_cgroup_charge_pages mm/memcontrol.c:2961 [inline] __memcg_kmem_charge_page+0x2e4/0x480 mm/memcontrol.c:2987 __alloc_pages+0x1a5/0x320 mm/page_alloc.c:5425 alloc_pages+0x34d/0x450 vm_area_alloc_pages mm/vmalloc.c:2929 [inline] __vmalloc_area_node mm/vmalloc.c:2997 [inline] __vmalloc_node_range+0x730/0xef0 mm/vmalloc.c:3167 kvmalloc_node+0xf3/0x140 mm/util.c:601 kvmalloc include/linux/slab.h:731 [inline] xt_alloc_table_info+0x39/0x70 net/netfilter/x_tables.c:1192 do_replace net/ipv6/netfilter/ip6_tables.c:1142 [inline] do_ip6t_set_ctl+0x645/0x1790 net/ipv6/netfilter/ip6_tables.c:1639 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101 ipv6_setsockopt+0x2724/0x2a90 net/ipv6/ipv6_sockglue.c:1026 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3505 __sys_setsockopt+0x212/0x2b0 net/socket.c:2180 __do_sys_setsockopt net/socket.c:2191 [inline] __se_sys_setsockopt net/socket.c:2188 [inline] __x64_sys_setsockopt+0x62/0x70 net/socket.c:2188 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000100045e5f -> 0x0000000100045e60 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 22865 Comm: syz-executor.1 Not tainted 5.18.0-rc7-syzkaller-00015-gef1302160bfb-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== syz-executor.1 (22865) used greatest stack depth: 9968 bytes left