================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_ratelimited / tick_do_update_jiffies64 read-write to 0xffffffff866089c0 of 8 bytes by interrupt on cpu 0: 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:1739 [inline] __hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x235/0x4a0 kernel/time/hrtimer.c:1865 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 kcsan_setup_watchpoint+0x404/0x410 kernel/kcsan/core.c:705 blk_account_io_start+0x24/0x410 block/blk-mq.c:1089 blk_mq_bio_to_request block/blk-mq.c:2670 [inline] blk_mq_submit_bio+0x903/0xe40 block/blk-mq.c:3130 __submit_bio+0xf2/0x470 block/blk-core.c:629 __submit_bio_noacct_mq block/blk-core.c:710 [inline] submit_bio_noacct_nocheck+0x295/0x6e0 block/blk-core.c:739 submit_bio_noacct+0x766/0x9a0 block/blk-core.c:868 submit_bio+0x218/0x230 block/blk-core.c:910 ext4_io_submit+0x8a/0xb0 fs/ext4/page-io.c:377 ext4_do_writepages+0x704/0x2130 fs/ext4/inode.c:2692 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2824 do_writepages+0x1d8/0x480 mm/page-writeback.c:2702 __writeback_single_inode+0x89/0x850 fs/fs-writeback.c:1680 writeback_sb_inodes+0x461/0xa30 fs/fs-writeback.c:1976 __writeback_inodes_wb+0x9a/0x1a0 fs/fs-writeback.c:2047 wb_writeback+0x274/0x640 fs/fs-writeback.c:2158 wb_check_start_all fs/fs-writeback.c:2284 [inline] wb_do_writeback fs/fs-writeback.c:2310 [inline] wb_workfn+0x4ea/0x940 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffffffff866089c0 of 8 bytes by task 6280 on cpu 1: mem_cgroup_flush_stats_ratelimited+0x29/0x70 mm/memcontrol.c:640 count_shadow_nodes+0x6b/0x230 mm/workingset.c:683 do_shrink_slab+0x5a/0x680 mm/shrinker.c:384 shrink_slab_memcg mm/shrinker.c:550 [inline] shrink_slab+0x4ea/0x850 mm/shrinker.c:628 shrink_node_memcgs mm/vmscan.c:5931 [inline] shrink_node+0x63f/0x1d80 mm/vmscan.c:5970 shrink_zones mm/vmscan.c:6215 [inline] do_try_to_free_pages+0x3c6/0xc50 mm/vmscan.c:6277 try_to_free_mem_cgroup_pages+0x1e3/0x490 mm/vmscan.c:6609 try_charge_memcg+0x2bc/0x7f0 mm/memcontrol.c:2238 obj_cgroup_charge_pages+0xbd/0x1a0 mm/memcontrol.c:2646 __memcg_kmem_charge_page+0x9d/0x170 mm/memcontrol.c:2673 __alloc_pages_noprof+0x1bc/0x340 mm/page_alloc.c:4768 alloc_pages_mpol_noprof+0xb1/0x1e0 mm/mempolicy.c:2265 alloc_pages_noprof+0xe1/0x100 mm/mempolicy.c:2344 vm_area_alloc_pages mm/vmalloc.c:3589 [inline] __vmalloc_area_node mm/vmalloc.c:3667 [inline] __vmalloc_node_range_noprof+0x6eb/0xe80 mm/vmalloc.c:3844 __kvmalloc_node_noprof+0x121/0x170 mm/util.c:672 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:256 hash_ipport_create+0x4dc/0x9f0 net/netfilter/ipset/ip_set_hash_gen.h:1568 ip_set_create+0x359/0x8a0 net/netfilter/ipset/ip_set_core.c:1104 nfnetlink_rcv_msg+0x4a9/0x570 net/netfilter/nfnetlink.c:302 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2542 nfnetlink_rcv+0x16c/0x15d0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:726 ____sys_sendmsg+0x312/0x410 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x19d/0x230 net/socket.c:2669 __do_sys_sendmsg net/socket.c:2674 [inline] __se_sys_sendmsg net/socket.c:2672 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2672 x64_sys_call+0x2734/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:47 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 value changed: 0x00000000ffffb335 -> 0x00000000ffffb336 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 6280 Comm: syz.0.811 Not tainted 6.12.0-syzkaller-12128-gf788b5ef1ca9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== syz.0.811 (6280) used greatest stack depth: 7296 bytes left