================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff86809a00 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+0x8d/0x3d0 kernel/time/tick-sched.c:312 __run_hrtimer kernel/time/hrtimer.c:1777 [inline] __hrtimer_run_queues+0x20f/0x5a0 kernel/time/hrtimer.c:1841 hrtimer_interrupt+0x21a/0x460 kernel/time/hrtimer.c:1903 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1045 [inline] __sysvec_apic_timer_interrupt+0x5f/0x1d0 arch/x86/kernel/apic/apic.c:1062 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 kcsan_setup_watchpoint+0x406/0x420 kernel/kcsan/core.c:705 inode_to_bdi+0x47/0xa0 mm/backing-dev.c:1215 mapping_can_writeback include/linux/backing-dev.h:136 [inline] __folio_cancel_dirty+0x31/0x160 mm/page-writeback.c:2864 folio_cancel_dirty include/linux/pagemap.h:1260 [inline] truncate_cleanup_folio+0x1b9/0x1f0 mm/truncate.c:167 truncate_inode_folio+0x3a/0x50 mm/truncate.c:175 shmem_undo_range+0x244/0xa80 mm/shmem.c:1133 shmem_truncate_range mm/shmem.c:1249 [inline] shmem_evict_inode+0x12e/0x510 mm/shmem.c:1379 evict+0x2af/0x510 fs/inode.c:837 iput_final fs/inode.c:1954 [inline] iput+0x4bd/0x650 fs/inode.c:2006 dentry_unlink_inode+0x24f/0x260 fs/dcache.c:467 __dentry_kill+0x18d/0x4b0 fs/dcache.c:670 finish_dput+0x2b/0x200 fs/dcache.c:879 dput+0x52/0x60 fs/dcache.c:928 __fput+0x444/0x650 fs/file_table.c:476 ____fput+0x1c/0x30 fs/file_table.c:496 task_work_run+0x131/0x1a0 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x467/0x1590 kernel/exit.c:971 do_group_exit+0xff/0x140 kernel/exit.c:1112 get_signal+0xe58/0xf70 kernel/signal.c:3034 arch_do_signal_or_restart+0x96/0x450 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop+0x6a/0x740 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x1dd/0x2b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff86809a00 of 8 bytes by task 5816 on cpu 1: mem_cgroup_flush_stats_ratelimited+0x29/0x70 mm/memcontrol.c:636 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+0x4f5/0x840 mm/shrinker.c:628 shrink_node_memcgs mm/vmscan.c:6022 [inline] shrink_node+0x6a9/0x2010 mm/vmscan.c:6061 shrink_zones mm/vmscan.c:6300 [inline] do_try_to_free_pages+0x3f6/0xcd0 mm/vmscan.c:6362 try_to_free_mem_cgroup_pages+0x1ab/0x410 mm/vmscan.c:6690 try_charge_memcg+0x383/0xa10 mm/memcontrol.c:2388 obj_cgroup_charge_pages+0xa6/0x150 mm/memcontrol.c:2823 __memcg_kmem_charge_page+0x9f/0x170 mm/memcontrol.c:2867 __alloc_frozen_pages_noprof+0x18f/0x360 mm/page_alloc.c:5227 alloc_pages_mpol+0xb3/0x260 mm/mempolicy.c:2486 alloc_frozen_pages_noprof mm/mempolicy.c:2557 [inline] alloc_pages_noprof+0x90/0x130 mm/mempolicy.c:2577 vm_area_alloc_pages mm/vmalloc.c:3718 [inline] __vmalloc_area_node mm/vmalloc.c:3863 [inline] __vmalloc_node_range_noprof+0xa7b/0x1310 mm/vmalloc.c:4051 __kvmalloc_node_noprof+0x492/0x6b0 mm/slub.c:7164 ip_set_alloc+0x24/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x282/0x740 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x3cc/0x970 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4c6/0x590 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x123/0x220 net/netlink/af_netlink.c:2550 nfnetlink_rcv+0x167/0x16c0 net/netfilter/nfnetlink.c:669 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5c0/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x58b/0x6b0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x145/0x180 net/socket.c:742 ____sys_sendmsg+0x31e/0x4a0 net/socket.c:2592 ___sys_sendmsg+0x17b/0x1d0 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0xd4/0x160 net/socket.c:2681 x64_sys_call+0x17ba/0x3000 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000ffffacf7 -> 0x00000000ffffacf8 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 5816 Comm: syz.2.786 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 ================================================================== syz.2.786 invoked oom-killer: gfp_mask=0x402dc2(GFP_KERNEL_ACCOUNT|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), order=0, oom_score_adj=1000 CPU: 1 UID: 0 PID: 5816 Comm: syz.2.786 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 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+0x81/0x240 mm/oom_kill.c:467 oom_kill_process+0x295/0x350 mm/oom_kill.c:1047 out_of_memory+0x97b/0xb80 mm/oom_kill.c:1185 mem_cgroup_out_of_memory mm/memcontrol.c:1682 [inline] mem_cgroup_oom mm/memcontrol.c:1705 [inline] try_charge_memcg+0x610/0xa10 mm/memcontrol.c:2430 obj_cgroup_charge_pages+0xa6/0x150 mm/memcontrol.c:2823 __memcg_kmem_charge_page+0x9f/0x170 mm/memcontrol.c:2867 __alloc_frozen_pages_noprof+0x18f/0x360 mm/page_alloc.c:5227 alloc_pages_mpol+0xb3/0x260 mm/mempolicy.c:2486 alloc_frozen_pages_noprof mm/mempolicy.c:2557 [inline] alloc_pages_noprof+0x90/0x130 mm/mempolicy.c:2577 vm_area_alloc_pages mm/vmalloc.c:3718 [inline] __vmalloc_area_node mm/vmalloc.c:3863 [inline] __vmalloc_node_range_noprof+0xa7b/0x1310 mm/vmalloc.c:4051 __kvmalloc_node_noprof+0x492/0x6b0 mm/slub.c:7164 ip_set_alloc+0x24/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x282/0x740 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x3cc/0x970 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4c6/0x590 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x123/0x220 net/netlink/af_netlink.c:2550 nfnetlink_rcv+0x167/0x16c0 net/netfilter/nfnetlink.c:669 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5c0/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x58b/0x6b0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x145/0x180 net/socket.c:742 ____sys_sendmsg+0x31e/0x4a0 net/socket.c:2592 ___sys_sendmsg+0x17b/0x1d0 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0xd4/0x160 net/socket.c:2681 x64_sys_call+0x17ba/0x3000 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f055090f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f054f377038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f0550b65fa0 RCX: 00007f055090f749 RDX: 0000000000000800 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f0550993f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0550b66038 R14: 00007f0550b65fa0 R15: 00007fff79ccd8c8 memory: usage 307200kB, limit 307200kB, failcnt 1773 memory+swap: usage 307392kB, limit 9007199254740988kB, failcnt 0 kmem: usage 302576kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz2: cache 0 rss 4734976 shmem 0 mapped_file 0 dirty 0 writeback 0 workingset_refault_anon 258 workingset_refault_file 2243 swap 196608 swapcached 0 pgpgin 59968 pgpgout 58812 pgfault 63757 pgmajfault 199 inactive_anon 0 active_anon 0 inactive_file 4734976 active_file 0 unevictable 0 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 0 total_rss 4734976 total_shmem 0 total_mapped_file 0 total_dirty 0 total_writeback 0 total_workingset_refault_anon 258 total_workingset_refault_file 2243 total_swap 196608 total_swapcached 0 total_pgpgin 59968 total_pgpgout 58812 total_pgfault 63757 total_pgmajfault 199 total_inactive_anon 0 total_active_anon 0 total_inactive_file 4734976 total_active_file 0 total_unevictable 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/syz2,task_memcg=/syz2,task=syz.2.786,pid=5814,uid=0 Memory cgroup out of memory: Killed process 5814 (syz.2.786) total-vm:96016kB, anon-rss:5872kB, file-rss:22180kB, shmem-rss:0kB, UID:0 pgtables:148kB oom_score_adj:1000