================================================================== BUG: KCSAN: data-race in __cgroup_account_cputime / cgroup_rstat_flush_locked read-write to 0xffffe8ffffd7a7d0 of 8 bytes by task 11305 on cpu 1: __cgroup_account_cputime+0x5a/0xb0 kernel/cgroup/rstat.c:379 cgroup_account_cputime include/linux/cgroup.h:797 [inline] update_curr+0xf4/0x240 kernel/sched/fair.c:909 put_prev_entity+0x1d/0x180 kernel/sched/fair.c:4616 pick_next_task_fair+0x1f6/0x260 kernel/sched/fair.c:7339 __pick_next_task kernel/sched/core.c:5695 [inline] pick_next_task kernel/sched/core.c:6204 [inline] __schedule+0x270/0x6c0 kernel/sched/core.c:6352 preempt_schedule_common kernel/sched/core.c:6553 [inline] __cond_resched+0x3f/0xa0 kernel/sched/core.c:8160 might_resched include/linux/kernel.h:110 [inline] might_alloc include/linux/sched/mm.h:265 [inline] slab_pre_alloc_hook mm/slab.h:722 [inline] slab_alloc_node mm/slab.c:3214 [inline] kmem_cache_alloc_node+0x4d/0x2c0 mm/slab.c:3607 __alloc_skb+0xfc/0x450 net/core/skbuff.c:414 alloc_skb include/linux/skbuff.h:1300 [inline] sctp_packet_transmit+0x1da/0x13e0 net/sctp/output.c:597 sctp_packet_singleton+0x118/0x170 net/sctp/outqueue.c:780 sctp_outq_flush_ctrl net/sctp/outqueue.c:911 [inline] sctp_outq_flush+0x300/0x1920 net/sctp/outqueue.c:1209 sctp_outq_uncork+0x54/0x60 net/sctp/outqueue.c:761 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x2c15/0x2ed0 net/sctp/sm_sideeffect.c:1170 sctp_primitive_ASSOCIATE+0x6e/0x80 net/sctp/primitive.c:73 sctp_sendmsg_to_asoc+0x5e9/0x960 net/sctp/socket.c:1837 sctp_sendmsg+0x1280/0x1840 net/sctp/socket.c:2027 inet_sendmsg+0x5f/0x80 net/ipv4/af_inet.c:819 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg net/socket.c:725 [inline] __sys_sendto+0x21e/0x2c0 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0x74/0x90 net/socket.c:2048 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffe8ffffd7a7d0 of 8 bytes by task 1823 on cpu 0: cgroup_base_stat_flush kernel/cgroup/rstat.c:337 [inline] cgroup_rstat_flush_locked+0x2e3/0x750 kernel/cgroup/rstat.c:170 cgroup_rstat_flush_irqsafe+0x24/0x40 kernel/cgroup/rstat.c:224 __mem_cgroup_flush_stats mm/memcontrol.c:644 [inline] mem_cgroup_flush_stats+0xc1/0x110 mm/memcontrol.c:652 shrink_node+0x2fc/0x1110 mm/vmscan.c:3126 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3458 do_try_to_free_pages+0x165/0x720 mm/vmscan.c:3516 try_to_free_mem_cgroup_pages+0x1cd/0x420 mm/vmscan.c:3830 reclaim_high+0xcd/0x110 mm/memcontrol.c:2325 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2509 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline] exit_to_user_mode_loop+0xa5/0x130 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x0000000201cf8e2d -> 0x0000000201d4d5a1 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1823 Comm: syz-executor.1 Not tainted 5.18.0-rc6-syzkaller-00007-g9be9ed2612b5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================