================================================================== 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 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:1761 [inline] __hrtimer_run_queues+0x221/0x5f0 kernel/time/hrtimer.c:1825 hrtimer_interrupt+0x235/0x4a0 kernel/time/hrtimer.c:1887 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1d0 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irq+0x2f/0x50 kernel/locking/spinlock.c:202 spin_unlock_irq include/linux/spinlock.h:401 [inline] shmem_add_to_page_cache+0x2d6/0x4b0 mm/shmem.c:916 shmem_alloc_and_add_folio mm/shmem.c:1919 [inline] shmem_get_folio_gfp+0x4dd/0xd30 mm/shmem.c:2533 shmem_fault+0xf7/0x260 mm/shmem.c:2734 __do_fault+0xb6/0x200 mm/memory.c:5098 do_read_fault mm/memory.c:5518 [inline] do_fault mm/memory.c:5652 [inline] do_pte_missing mm/memory.c:4160 [inline] handle_pte_fault mm/memory.c:5997 [inline] __handle_mm_fault mm/memory.c:6140 [inline] handle_mm_fault+0xe9b/0x2e80 mm/memory.c:6309 faultin_page mm/gup.c:1193 [inline] __get_user_pages+0xf4e/0x2340 mm/gup.c:1491 populate_vma_page_range mm/gup.c:1929 [inline] __mm_populate+0x25d/0x3c0 mm/gup.c:2032 mm_populate include/linux/mm.h:3470 [inline] vm_mmap_pgoff+0x224/0x2d0 mm/util.c:584 ksys_mmap_pgoff+0xd0/0x340 mm/mmap.c:607 x64_sys_call+0x1945/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:10 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff868099c0 of 8 bytes by task 27872 on cpu 0: mem_cgroup_flush_stats_ratelimited+0x29/0x70 mm/memcontrol.c:643 count_shadow_nodes+0x6b/0x230 mm/workingset.c:680 do_shrink_slab+0x5e/0x6a0 mm/shrinker.c:384 shrink_slab_memcg mm/shrinker.c:550 [inline] shrink_slab+0x4f2/0x860 mm/shrinker.c:628 shrink_node_memcgs mm/vmscan.c:5991 [inline] shrink_node+0x647/0x1da0 mm/vmscan.c:6030 shrink_zones mm/vmscan.c:6274 [inline] do_try_to_free_pages+0x3c6/0xc10 mm/vmscan.c:6336 try_to_free_mem_cgroup_pages+0x1e6/0x4a0 mm/vmscan.c:6664 try_charge_memcg+0x3ab/0x890 mm/memcontrol.c:2304 obj_cgroup_charge_pages+0xc0/0x1a0 mm/memcontrol.c:2695 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2739 __alloc_frozen_pages_noprof+0x1a6/0x360 mm/page_alloc.c:4999 alloc_pages_mpol+0xb6/0x260 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof+0xe8/0x130 mm/mempolicy.c:2392 vm_area_alloc_pages mm/vmalloc.c:3591 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0x6ea/0xe80 mm/vmalloc.c:3844 __kvmalloc_node_noprof+0x311/0x520 mm/slub.c:5048 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:261 hash_netiface_create+0x273/0x730 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x3b6/0x970 net/netfilter/ipset/ip_set_core.c:1109 nfnetlink_rcv_msg+0x4ba/0x580 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x12f/0x230 net/netlink/af_netlink.c:2534 nfnetlink_rcv+0x187/0x1610 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x605/0x6c0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x609/0x720 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:727 ____sys_sendmsg+0x350/0x4e0 net/socket.c:2566 ___sys_sendmsg net/socket.c:2620 [inline] __sys_sendmsg+0x1a0/0x240 net/socket.c:2652 __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2655 x64_sys_call+0x26f3/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000100005511 -> 0x0000000100005512 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 27872 Comm: syz.0.7456 Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================