================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff86e07a00 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:253 [inline] tick_nohz_handler+0x88/0x380 kernel/time/tick-sched.c:310 __run_hrtimer kernel/time/hrtimer.c:2074 [inline] __hrtimer_run_queues+0x1f8/0x510 kernel/time/hrtimer.c:2131 hrtimer_interrupt+0x27b/0x860 kernel/time/hrtimer.c:2250 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x5f/0x1c0 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 __sanitizer_cov_trace_pc+0x8/0x80 kernel/kcov.c:209 ma_slots lib/maple_tree.c:646 [inline] mas_prev_slot+0x284/0x670 lib/maple_tree.c:4083 mas_prev+0x5a/0x80 lib/maple_tree.c:5311 vma_prev include/linux/mm.h:1688 [inline] vms_gather_munmap_vmas+0xe6/0x7f0 mm/vma.c:1511 __mmap_setup mm/vma.c:2538 [inline] __mmap_region mm/vma.c:2861 [inline] mmap_region+0x802/0x21e0 mm/vma.c:2966 do_mmap+0xa20/0xc70 mm/mmap.c:573 vm_mmap_pgoff+0x183/0x2d0 mm/util.c:581 ksys_mmap_pgoff+0x250/0x310 mm/mmap.c:619 x64_sys_call+0x23b3/0x2550 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x112/0x360 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff86e07a00 of 8 bytes by task 11331 on cpu 1: mem_cgroup_flush_stats_ratelimited+0x29/0x50 mm/memcontrol.c:788 prepare_scan_control mm/vmscan.c:2297 [inline] shrink_node+0x109f/0x2000 mm/vmscan.c:6262 shrink_zones mm/vmscan.c:6503 [inline] do_try_to_free_pages+0x408/0xca0 mm/vmscan.c:6565 try_to_free_mem_cgroup_pages+0x201/0x420 mm/vmscan.c:6887 try_charge_memcg+0x422/0xae0 mm/memcontrol.c:2718 charge_memcg+0x16f/0x220 mm/memcontrol.c:5210 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:5227 mem_cgroup_charge include/linux/memcontrol.h:662 [inline] shmem_alloc_and_add_folio mm/shmem.c:1985 [inline] shmem_get_folio_gfp+0x49f/0xd90 mm/shmem.c:2528 shmem_get_folio mm/shmem.c:2634 [inline] shmem_write_begin+0xfc/0x1f0 mm/shmem.c:3265 generic_perform_write+0x186/0x490 mm/filemap.c:4374 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3440 __kernel_write_iter+0x30f/0x590 fs/read_write.c:621 dump_emit_page fs/coredump.c:1293 [inline] dump_user_range+0xa73/0xd00 fs/coredump.c:1367 elf_core_dump+0x21c0/0x2340 fs/binfmt_elf.c:2106 coredump_write+0xafb/0xdd0 fs/coredump.c:1047 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x2762/0x3270 fs/coredump.c:1195 get_signal+0xd33/0xf10 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x14d/0x610 kernel/entry/common.c:165 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 value changed: 0x00000000ffffe237 -> 0x00000000ffffe238 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 11331 Comm: syz.6.1374 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 ================================================================== syz.6.1374 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0 CPU: 1 UID: 0 PID: 11331 Comm: syz.6.1374 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x1d/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x95/0xd0 lib/dump_stack.c:120 dump_stack+0x15/0x1b lib/dump_stack.c:129 dump_header+0x80/0x240 mm/oom_kill.c:464 oom_kill_process+0x294/0x420 mm/oom_kill.c:1031 out_of_memory+0x981/0xbc0 mm/oom_kill.c:1169 mem_cgroup_out_of_memory mm/memcontrol.c:1952 [inline] mem_cgroup_oom mm/memcontrol.c:1975 [inline] try_charge_memcg+0x6ba/0xae0 mm/memcontrol.c:2760 charge_memcg+0x16f/0x220 mm/memcontrol.c:5210 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:5227 mem_cgroup_charge include/linux/memcontrol.h:662 [inline] shmem_alloc_and_add_folio mm/shmem.c:1985 [inline] shmem_get_folio_gfp+0x49f/0xd90 mm/shmem.c:2528 shmem_get_folio mm/shmem.c:2634 [inline] shmem_write_begin+0xfc/0x1f0 mm/shmem.c:3265 generic_perform_write+0x186/0x490 mm/filemap.c:4374 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3440 __kernel_write_iter+0x30f/0x590 fs/read_write.c:621 dump_emit_page fs/coredump.c:1293 [inline] dump_user_range+0xa73/0xd00 fs/coredump.c:1367 elf_core_dump+0x21c0/0x2340 fs/binfmt_elf.c:2106 coredump_write+0xafb/0xdd0 fs/coredump.c:1047 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x2762/0x3270 fs/coredump.c:1195 get_signal+0xd33/0xf10 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x14d/0x610 kernel/entry/common.c:165 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f66a402e161 Code: 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 48 3d 01 f0 ff ff 73 01 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f66a42b6090 RCX: 00007f66a402e159 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007f66a40c506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f66a42b6128 R14: 00007f66a42b6090 R15: 00007ffea248c858 memory: usage 307200kB, limit 307200kB, failcnt 36691 memory+swap: usage 393528kB, limit 9007199254740988kB, failcnt 0 kmem: usage 3860kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz6: cache 309997568 rss 598016 shmem 309997568 mapped_file 0 dirty 0 writeback 0 workingset_refault_anon 37 workingset_refault_file 0 swap 88399872 swapcached 160763904 pgpgin 297622 pgpgout 221787 pgfault 79653 pgmajfault 36 inactive_anon 233857024 active_anon 76513280 inactive_file 0 active_file 0 unevictable 0 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 309997568 total_rss 598016 total_shmem 309997568 total_mapped_file 0 total_dirty 0 total_writeback 0 total_workingset_refault_anon 37 total_workingset_refault_file 0 total_swap 88399872 total_swapcached 160763904 total_pgpgin 297622 total_pgpgout 221787 total_pgfault 79653 total_pgmajfault 36 total_inactive_anon 233857024 total_active_anon 76513280 total_inactive_file 0 total_active_file 0 total_unevictable 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz6,mems_allowed=0,oom_memcg=/syz6,task_memcg=/syz6,task=syz.6.1374,pid=11334,uid=0 Memory cgroup out of memory: Killed process 11334 (syz.6.1374) total-vm:90876kB, anon-rss:1340kB, file-rss:57668kB, shmem-rss:0kB, UID:0 pgtables:200kB oom_score_adj:0 syz.6.1374 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0 CPU: 0 UID: 0 PID: 11331 Comm: syz.6.1374 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x1d/0x30 lib/dump_stack.c:94 dump_stack_lvl+0x95/0xd0 lib/dump_stack.c:120 dump_stack+0x15/0x1b lib/dump_stack.c:129 dump_header+0x80/0x240 mm/oom_kill.c:464 oom_kill_process+0x294/0x420 mm/oom_kill.c:1031 out_of_memory+0x981/0xbc0 mm/oom_kill.c:1169 mem_cgroup_out_of_memory mm/memcontrol.c:1952 [inline] mem_cgroup_oom mm/memcontrol.c:1975 [inline] try_charge_memcg+0x6ba/0xae0 mm/memcontrol.c:2760 charge_memcg+0x16f/0x220 mm/memcontrol.c:5210 __mem_cgroup_charge+0x28/0xb0 mm/memcontrol.c:5227 mem_cgroup_charge include/linux/memcontrol.h:662 [inline] shmem_alloc_and_add_folio mm/shmem.c:1985 [inline] shmem_get_folio_gfp+0x49f/0xd90 mm/shmem.c:2528 shmem_get_folio mm/shmem.c:2634 [inline] shmem_write_begin+0xfc/0x1f0 mm/shmem.c:3265 generic_perform_write+0x186/0x490 mm/filemap.c:4374 shmem_file_write_iter+0xc5/0xf0 mm/shmem.c:3440 __kernel_write_iter+0x30f/0x590 fs/read_write.c:621 dump_emit_page fs/coredump.c:1293 [inline] dump_user_range+0xa73/0xd00 fs/coredump.c:1367 elf_core_dump+0x21c0/0x2340 fs/binfmt_elf.c:2106 coredump_write+0xafb/0xdd0 fs/coredump.c:1047 do_coredump fs/coredump.c:1126 [inline] vfs_coredump+0x2762/0x3270 fs/coredump.c:1195 get_signal+0xd33/0xf10 kernel/signal.c:3036 arch_do_signal_or_restart+0x96/0x480 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x14d/0x610 kernel/entry/common.c:165 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7f66a402e161 Code: 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 48 3d 01 f0 ff ff 73 01 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:fffffffffffffe70 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f66a42b6090 RCX: 00007f66a402e159 RDX: 0000000000000000 RSI: fffffffffffffe70 RDI: 0000000000008000 RBP: 00007f66a40c506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f66a42b6128 R14: 00007f66a42b6090 R15: 00007ffea248c858 memory: usage 307200kB, limit 307200kB, failcnt 36937 memory+swap: usage 393544kB, limit 9007199254740988kB, failcnt 0 kmem: usage 3860kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz6: cache 310009856 rss 598016 shmem 310009856 mapped_file 0 dirty 0 writeback 0 workingset_refault_anon 37 workingset_refault_file 0 swap 88416256 swapcached 160763904 pgpgin 297626 pgpgout 221791 pgfault 79653 pgmajfault 36 inactive_anon 233910272 active_anon 76709888 inactive_file 0 active_file 0 unevictable 0 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 310009856 total_rss 598016 total_shmem 310009856 total_mapped_file 0 total_dirty 0 total_writeback 0 total_workingset_refault_anon 37 total_workingset_refault_file 0 total_swap 88416256 total_swapcached 160763904 total_pgpgin 297626 total_pgpgout 221791 total_pgfault 79653 total_pgmajfault 36 total_inactive_anon 233910272 total_active_anon 76709888 total_inactive_file 0 total_active_file 0 total_unevictable 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz6,mems_allowed=0,oom_memcg=/syz6,task_memcg=/syz6,task=syz.6.1374,pid=11331,uid=0 Memory cgroup out of memory: Killed process 11331 (syz.6.1374) total-vm:90876kB, anon-rss:1340kB, file-rss:57668kB, shmem-rss:0kB, UID:0 pgtables:200kB oom_score_adj:0