================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats / tick_do_update_jiffies64 read-write to 0xffffffff85a079c0 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:210 [inline] tick_sched_timer+0x7b/0x2c0 kernel/time/tick-sched.c:1485 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1098 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1115 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1109 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 console_flush_all+0x495/0x6a0 console_unlock+0xf3/0x210 kernel/printk/printk.c:3007 vprintk_emit+0x107/0x430 kernel/printk/printk.c:2307 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __netdev_printk+0x2bf/0x3b0 net/core/dev.c:11239 netdev_info+0x99/0xc0 net/core/dev.c:11286 __dev_set_allmulti+0x18c/0x280 net/core/dev.c:8390 dev_set_allmulti+0x1f/0x30 net/core/dev.c:8416 macvlan_open+0x341/0x560 drivers/net/macvlan.c:651 __dev_open+0x281/0x3a0 net/core/dev.c:1442 dev_open+0x58/0x1a0 net/core/dev.c:1478 team_port_add drivers/net/team/team.c:1215 [inline] team_add_slave+0x5c4/0x1630 drivers/net/team/team.c:1985 do_set_master net/core/rtnetlink.c:2661 [inline] rtnl_newlink_create net/core/rtnetlink.c:3489 [inline] __rtnl_newlink net/core/rtnetlink.c:3689 [inline] rtnl_newlink+0x140b/0x1600 net/core/rtnetlink.c:3702 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6424 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2549 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6442 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494 ___sys_sendmsg net/socket.c:2548 [inline] __sys_sendmsg+0x1e9/0x270 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff85a079c0 of 8 bytes by task 26711 on cpu 1: do_flush_stats mm/memcontrol.c:653 [inline] mem_cgroup_flush_stats+0x5d/0xd0 mm/memcontrol.c:664 prepare_scan_count mm/vmscan.c:2926 [inline] shrink_node+0x304/0x15c0 mm/vmscan.c:6522 shrink_zones mm/vmscan.c:6763 [inline] do_try_to_free_pages+0x43d/0xce0 mm/vmscan.c:6825 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7140 try_charge_memcg+0x280/0xd20 mm/memcontrol.c:2695 obj_cgroup_charge_pages+0xab/0x130 mm/memcontrol.c:3109 __memcg_kmem_charge_page+0x1d5/0x2c0 mm/memcontrol.c:3135 __alloc_pages+0x1bb/0x340 mm/page_alloc.c:4494 alloc_pages+0x3e1/0x4e0 vm_area_alloc_pages mm/vmalloc.c:3059 [inline] __vmalloc_area_node mm/vmalloc.c:3135 [inline] __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3316 kvmalloc_node+0x121/0x160 mm/util.c:629 kvmalloc include/linux/slab.h:720 [inline] xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline] do_ipt_set_ctl+0x610/0x1710 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1467 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2778 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3686 __sys_setsockopt+0x1c9/0x230 net/socket.c:2263 __do_sys_setsockopt net/socket.c:2274 [inline] __se_sys_setsockopt net/socket.c:2271 [inline] __x64_sys_setsockopt+0x66/0x80 net/socket.c:2271 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x000000010003ed81 -> 0x000000010003ed82 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26711 Comm: syz-executor.2 Tainted: G W 6.5.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 ==================================================================