================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff868099c0 of 8 bytes by interrupt on cpu 0: tick_do_update_jiffies64+0x113/0x1c0 kernel/time/tick-sched.c:118 tick_sched_do_timer kernel/time/tick-sched.c:232 [inline] tick_nohz_handler+0x7f/0x2d0 kernel/time/tick-sched.c:290 __run_hrtimer kernel/time/hrtimer.c:1761 [inline] __hrtimer_run_queues+0x20f/0x5a0 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x21a/0x460 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1039 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1d0 arch/x86/kernel/apic/apic.c:1056 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline] sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1050 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 preempt_count arch/x86/include/asm/preempt.h:27 [inline] get_ctx kernel/kcsan/core.c:206 [inline] check_access kernel/kcsan/core.c:750 [inline] __tsan_read4+0xbe/0x190 kernel/kcsan/core.c:1024 mem_cgroup_calculate_protection+0x1a/0x70 mm/memcontrol.c:4752 shrink_node_memcgs mm/vmscan.c:6008 [inline] shrink_node+0x57a/0x2120 mm/vmscan.c:6074 shrink_zones mm/vmscan.c:6318 [inline] do_try_to_free_pages+0x3f6/0xcd0 mm/vmscan.c:6380 try_to_free_mem_cgroup_pages+0x1ab/0x410 mm/vmscan.c:6708 try_charge_memcg+0x358/0x9e0 mm/memcontrol.c:2360 try_charge mm/memcontrol.c:2502 [inline] charge_memcg+0x51/0xc0 mm/memcontrol.c:4768 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:4785 mem_cgroup_charge include/linux/memcontrol.h:652 [inline] shmem_alloc_and_add_folio mm/shmem.c:1900 [inline] shmem_get_folio_gfp+0x470/0xd60 mm/shmem.c:2536 shmem_get_folio mm/shmem.c:2642 [inline] shmem_write_begin+0xa8/0x190 mm/shmem.c:3292 generic_perform_write+0x181/0x490 mm/filemap.c:4112 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3467 __kernel_write_iter+0x253/0x4c0 fs/read_write.c:619 dump_emit_page fs/coredump.c:1112 [inline] dump_user_range+0x407/0x8c0 fs/coredump.c:1186 elf_core_dump+0x1dc2/0x1f80 fs/binfmt_elf.c:2075 do_coredump+0x1dfd/0x27b0 fs/coredump.c:950 get_signal+0xd85/0xf70 kernel/signal.c:3019 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] irqentry_exit_to_user_mode+0x5e/0xa0 kernel/entry/common.c:184 irqentry_exit+0x12/0x50 kernel/entry/common.c:287 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffffffff868099c0 of 8 bytes by task 31887 on cpu 1: mem_cgroup_flush_stats_ratelimited+0x29/0x70 mm/memcontrol.c:637 count_shadow_nodes+0x6a/0x230 mm/workingset.c:678 do_shrink_slab+0x63/0x680 mm/shrinker.c:384 shrink_slab_memcg mm/shrinker.c:550 [inline] shrink_slab+0x448/0x760 mm/shrinker.c:628 shrink_node_memcgs mm/vmscan.c:6035 [inline] shrink_node+0x6c3/0x2120 mm/vmscan.c:6074 shrink_zones mm/vmscan.c:6318 [inline] do_try_to_free_pages+0x3f6/0xcd0 mm/vmscan.c:6380 try_to_free_mem_cgroup_pages+0x1ab/0x410 mm/vmscan.c:6708 try_charge_memcg+0x358/0x9e0 mm/memcontrol.c:2360 try_charge mm/memcontrol.c:2502 [inline] charge_memcg+0x51/0xc0 mm/memcontrol.c:4768 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:4785 mem_cgroup_charge include/linux/memcontrol.h:652 [inline] shmem_alloc_and_add_folio mm/shmem.c:1900 [inline] shmem_get_folio_gfp+0x470/0xd60 mm/shmem.c:2536 shmem_get_folio mm/shmem.c:2642 [inline] shmem_write_begin+0xa8/0x190 mm/shmem.c:3292 generic_perform_write+0x181/0x490 mm/filemap.c:4112 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3467 __kernel_write_iter+0x253/0x4c0 fs/read_write.c:619 dump_emit_page fs/coredump.c:1112 [inline] dump_user_range+0x407/0x8c0 fs/coredump.c:1186 elf_core_dump+0x1dc2/0x1f80 fs/binfmt_elf.c:2075 do_coredump+0x1dfd/0x27b0 fs/coredump.c:950 get_signal+0xd85/0xf70 kernel/signal.c:3019 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] irqentry_exit_to_user_mode+0x5e/0xa0 kernel/entry/common.c:184 irqentry_exit+0x12/0x50 kernel/entry/common.c:287 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x00000001000193b9 -> 0x00000001000193ba Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 31887 Comm: syz.3.20820 Not tainted 6.16.0-rc5-syzkaller-00276-g5d5d62298b8b #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================