Re: [PATCH v2] kernel/sched: Fix sched_fork() access an invalid sched_task_group
From: Tejun Heo
Date: Tue Sep 14 2021 - 12:23:37 EST
On Tue, Sep 14, 2021 at 04:20:02PM +0800, Zhang Qiao wrote:
> Perhaps we can fix this bug at sched_post_fork(), which is executed between cgroup_can_fork()
> and cgroup_post_fork(). Relocate the fectching of task_group and access it at sched_post_fork().
Can't we just add a can_fork callback in cpu_cgrp_subsys?
--
tejun