================================================================== 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 console_flush_all+0x56b/0x770 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xab/0x330 kernel/printk/printk.c:3309 vprintk_emit+0x3f4/0x680 kernel/printk/printk.c:2432 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 __ext4_msg+0x18e/0x1a0 fs/ext4/super.c:998 ext4_check_journal_data_mode fs/ext4/super.c:5014 [inline] __ext4_fill_super fs/ext4/super.c:5305 [inline] ext4_fill_super+0x2174/0x3a10 fs/ext4/super.c:5733 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5765 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 do_new_mount+0x227/0x690 fs/namespace.c:3507 path_mount+0x49b/0xb30 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4034 __x64_sys_mount+0x67/0x80 fs/namespace.c:4034 x64_sys_call+0x2c84/0x2dc0 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 0xffffffff866089c0 of 8 bytes by task 10467 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 try_charge mm/memcontrol-v1.h:19 [inline] charge_memcg+0x50/0xc0 mm/memcontrol.c:4497 mem_cgroup_swapin_charge_folio+0xd0/0x150 mm/memcontrol.c:4582 __read_swap_cache_async+0x236/0x480 mm/swap_state.c:518 swap_cluster_readahead+0x381/0x3f0 mm/swap_state.c:703 swapin_readahead+0xe4/0x6f0 mm/swap_state.c:882 do_swap_page+0x31b/0x2550 mm/memory.c:4341 handle_pte_fault mm/memory.c:5804 [inline] __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x8e4/0x2ac0 mm/memory.c:6112 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0xf2c/0x2670 mm/gup.c:1485 __get_user_pages_locked mm/gup.c:1751 [inline] __gup_longterm_locked+0x932/0xf90 mm/gup.c:2523 gup_fast_fallback+0x1568/0x2010 mm/gup.c:3425 get_user_pages_fast+0x5f/0x90 mm/gup.c:3503 get_futex_key+0x16e/0x740 kernel/futex/core.c:277 futex_wake+0x7d/0x330 kernel/futex/waitwake.c:166 do_futex+0x2ab/0x370 kernel/futex/syscalls.c:107 mm_release+0xb7/0x1e0 kernel/fork.c:1624 exit_mm_release+0x25/0x30 kernel/fork.c:1641 exit_mm+0x38/0x190 kernel/exit.c:543 do_exit+0x55e/0x17f0 kernel/exit.c:925 do_group_exit+0x102/0x150 kernel/exit.c:1087 get_signal+0xeb9/0x1000 kernel/signal.c:3016 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0xa7/0x120 kernel/entry/common.c:231 irqentry_exit+0x12/0x50 kernel/entry/common.c:334 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0x00000000ffffcbd3 -> 0x00000000ffffcbd4 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 10467 Comm: syz.2.2281 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================