================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff860079c0 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:1689 [inline] __hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x210/0x7b0 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1a0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 console_flush_all+0x4fc/0x710 console_unlock+0x7b/0x280 kernel/printk/printk.c:3048 vprintk_emit+0x3ed/0x5e0 kernel/printk/printk.c:2348 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 __ext4_msg+0x18e/0x1a0 fs/ext4/super.c:990 ext4_orphan_cleanup+0x91e/0x9e0 fs/ext4/orphan.c:497 __ext4_fill_super fs/ext4/super.c:5553 [inline] ext4_fill_super+0x367a/0x39e0 fs/ext4/super.c:5676 get_tree_bdev+0x253/0x2e0 fs/super.c:1624 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5708 vfs_get_tree+0x56/0x1d0 fs/super.c:1789 do_new_mount+0x227/0x690 fs/namespace.c:3352 path_mount+0x49b/0xb30 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3875 __x64_sys_mount+0x67/0x80 fs/namespace.c:3875 x64_sys_call+0x25c9/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:166 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 read to 0xffffffff860079c0 of 8 bytes by task 24863 on cpu 0: mem_cgroup_flush_stats_ratelimited+0x29/0x100 mm/memcontrol.c:906 count_shadow_nodes+0x6b/0x230 mm/workingset.c:685 do_shrink_slab+0x5a/0x690 mm/shrinker.c:382 shrink_slab_memcg mm/shrinker.c:548 [inline] shrink_slab+0x4ed/0x860 mm/shrinker.c:626 shrink_node_memcgs mm/vmscan.c:5891 [inline] shrink_node+0xa0d/0x13c0 mm/vmscan.c:5924 shrink_zones mm/vmscan.c:6168 [inline] do_try_to_free_pages+0x3c6/0xc50 mm/vmscan.c:6230 try_to_free_mem_cgroup_pages+0x1eb/0x4e0 mm/vmscan.c:6545 try_charge_memcg+0x27a/0xcd0 mm/memcontrol.c:2944 try_charge mm/memcontrol.c:3092 [inline] charge_memcg mm/memcontrol.c:7495 [inline] __mem_cgroup_charge+0x63/0x100 mm/memcontrol.c:7510 mem_cgroup_charge include/linux/memcontrol.h:691 [inline] filemap_add_folio+0x53/0x1b0 mm/filemap.c:965 page_cache_ra_unbounded+0x148/0x2e0 mm/readahead.c:252 do_page_cache_ra mm/readahead.c:303 [inline] page_cache_ra_order+0xf7/0x110 mm/readahead.c:547 do_sync_mmap_readahead+0x267/0x2a0 mm/filemap.c:3175 filemap_fault+0x331/0xa60 mm/filemap.c:3313 __do_fault+0xb6/0x200 mm/memory.c:4556 do_read_fault mm/memory.c:4921 [inline] do_fault mm/memory.c:5051 [inline] do_pte_missing mm/memory.c:3897 [inline] handle_pte_fault mm/memory.c:5381 [inline] __handle_mm_fault mm/memory.c:5524 [inline] handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5689 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 value changed: 0x0000000100003595 -> 0x0000000100003596 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 24863 Comm: syz-executor Not tainted 6.10.0-rc6-syzkaller-00067-g8a9c6c40432e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ================================================================== syz-executor invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 CPU: 0 PID: 24863 Comm: syz-executor Not tainted 6.10.0-rc6-syzkaller-00067-g8a9c6c40432e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf2/0x150 lib/dump_stack.c:114 dump_stack+0x15/0x20 lib/dump_stack.c:123 dump_header+0x83/0x2d0 mm/oom_kill.c:462 oom_kill_process+0x33e/0x4c0 mm/oom_kill.c:1035 out_of_memory+0x9af/0xbe0 mm/oom_kill.c:1173 mem_cgroup_out_of_memory+0x13e/0x190 mm/memcontrol.c:1975 mem_cgroup_oom mm/memcontrol.c:2203 [inline] try_charge_memcg+0x745/0xcd0 mm/memcontrol.c:2992 try_charge mm/memcontrol.c:3092 [inline] charge_memcg mm/memcontrol.c:7495 [inline] __mem_cgroup_charge+0x63/0x100 mm/memcontrol.c:7510 mem_cgroup_charge include/linux/memcontrol.h:691 [inline] filemap_add_folio+0x53/0x1b0 mm/filemap.c:965 __filemap_get_folio+0x2f1/0x5b0 mm/filemap.c:1958 filemap_fault+0x3a7/0xa60 mm/filemap.c:3323 __do_fault+0xb6/0x200 mm/memory.c:4556 do_read_fault mm/memory.c:4921 [inline] do_fault mm/memory.c:5051 [inline] do_pte_missing mm/memory.c:3897 [inline] handle_pte_fault mm/memory.c:5381 [inline] __handle_mm_fault mm/memory.c:5524 [inline] handle_mm_fault+0xdeb/0x2a80 mm/memory.c:5689 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 RIP: 0033:0x7ff037cf2c5a Code: db 34 b6 d7 82 de 1b 43 48 f7 a4 24 88 00 00 00 48 8b 05 49 ab de 00 48 69 8c 24 80 00 00 00 e8 03 00 00 48 c1 ea 12 48 01 ca <8b> 48 08 48 89 d0 41 39 cf 4c 0f 45 ea 4c 29 f0 48 3b 05 2f aa de RSP: 002b:00007ffdf3ccc8a0 EFLAGS: 00010202 RAX: 0000001b2da20000 RBX: 0000000000000012 RCX: 000000000006b6c0 RDX: 000000000006b9ad RSI: 00007ffdf3ccc920 RDI: 0000000000000001 RBP: 00007ffdf3ccc8fc R08: 000000002caaf07d R09: 7fffffffffffffff R10: 00007ff037f820b8 R11: 00007ff037f82080 R12: 0000000000000032 R13: 000000000006aa8a R14: 000000000006a9fd R15: 0000000000000007 memory: usage 307200kB, limit 307200kB, failcnt 17254 memory+swap: usage 307588kB, limit 9007199254740988kB, failcnt 0 kmem: usage 307176kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz4: cache 0 rss 0 shmem 0 mapped_file 299008 dirty 0 writeback 0 workingset_refault_anon 68 workingset_refault_file 100 swap 397312 swapcached 0 pgpgin 320301 pgpgout 320295 pgfault 379081 pgmajfault 48 inactive_anon 0 active_anon 0 inactive_file 12288 active_file 12288 unevictable 0 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 0 total_rss 0 total_shmem 0 total_mapped_file 299008 total_dirty 0 total_writeback 0 total_workingset_refault_anon 68 total_workingset_refault_file 100 total_swap 397312 total_swapcached 0 total_pgpgin 320301 total_pgpgout 320295 total_pgfault 379081 total_pgmajfault 48 total_inactive_anon 0 total_active_anon 0 total_inactive_file 12288 total_active_file 12288 total_unevictable 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz4,mems_allowed=0,oom_memcg=/syz4,task_memcg=/syz4,task=syz.4.6543,pid=25088,uid=0 Memory cgroup out of memory: Killed process 25088 (syz.4.6543) total-vm:80752kB, anon-rss:452kB, file-rss:10008kB, shmem-rss:0kB, UID:0 pgtables:92kB oom_score_adj:1000