================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff866079c0 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:232 [inline] tick_nohz_handler+0x7c/0x2d0 kernel/time/tick-sched.c:290 __run_hrtimer kernel/time/hrtimer.c:1691 [inline] __hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x210/0x7b0 kernel/time/hrtimer.c:1817 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1026 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1a0 arch/x86/kernel/apic/apic.c:1043 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1037 [inline] sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1037 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705 do_try_to_free_pages+0x65f/0xc50 mm/vmscan.c:6259 try_to_free_mem_cgroup_pages+0x1f3/0x4f0 mm/vmscan.c:6589 try_charge_memcg+0x2bc/0x810 mm/memcontrol.c:2207 try_charge mm/memcontrol-v1.h:19 [inline] charge_memcg+0x50/0xc0 mm/memcontrol.c:4468 mem_cgroup_swapin_charge_folio+0xd0/0x150 mm/memcontrol.c:4553 __read_swap_cache_async+0x236/0x480 mm/swap_state.c:518 swap_cluster_readahead+0x276/0x3f0 mm/swap_state.c:684 swapin_readahead+0xe4/0x6f0 mm/swap_state.c:882 do_swap_page+0x2af/0x23e0 mm/memory.c:4324 handle_pte_fault mm/memory.c:5754 [inline] __handle_mm_fault mm/memory.c:5894 [inline] handle_mm_fault+0x8c5/0x2a80 mm/memory.c:6062 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffffffff866079c0 of 8 bytes by task 9080 on cpu 0: mem_cgroup_flush_stats_ratelimited+0x29/0x100 mm/memcontrol.c:619 count_shadow_nodes+0x6b/0x230 mm/workingset.c:693 do_shrink_slab+0x5a/0x680 mm/shrinker.c:382 shrink_slab_memcg mm/shrinker.c:548 [inline] shrink_slab+0x4ea/0x850 mm/shrinker.c:626 shrink_node_memcgs mm/vmscan.c:5913 [inline] shrink_node+0x64f/0x1d40 mm/vmscan.c:5951 shrink_zones mm/vmscan.c:6195 [inline] do_try_to_free_pages+0x3c6/0xc50 mm/vmscan.c:6257 try_to_free_mem_cgroup_pages+0x1f3/0x4f0 mm/vmscan.c:6589 try_charge_memcg+0x2bc/0x810 mm/memcontrol.c:2207 obj_cgroup_charge_pages+0xbd/0x1a0 mm/memcontrol.c:2623 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2650 __alloc_pages_noprof+0x1bc/0x360 mm/page_alloc.c:4750 alloc_pages_mpol_noprof+0xb1/0x1e0 mm/mempolicy.c:2265 alloc_pages_noprof+0xe1/0x100 mm/mempolicy.c:2345 vm_area_alloc_pages mm/vmalloc.c:3568 [inline] __vmalloc_area_node mm/vmalloc.c:3646 [inline] __vmalloc_node_range_noprof+0x72e/0xec0 mm/vmalloc.c:3828 __bpf_map_area_alloc kernel/bpf/syscall.c:307 [inline] bpf_map_area_alloc+0xd8/0x110 kernel/bpf/syscall.c:314 queue_stack_map_alloc+0x7c/0xe0 kernel/bpf/queue_stack_maps.c:73 map_create+0x850/0xb70 kernel/bpf/syscall.c:1341 __sys_bpf+0x667/0x7a0 kernel/bpf/syscall.c:5616 __do_sys_bpf kernel/bpf/syscall.c:5741 [inline] __se_sys_bpf kernel/bpf/syscall.c:5739 [inline] __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5739 x64_sys_call+0x2625/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000ffffbfcd -> 0x00000000ffffbfce Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 9080 Comm: syz.0.1786 Not tainted 6.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================