Re: [PATCH v3 1/2] cgroup/cpuset: reset DL migration state on can_attach() failure

From: Juri Lelli

Date: Mon May 11 2026 - 05:34:56 EST


On Sat, 09 May 2026 18:20:30 +0800, Guopeng Zhang <zhangguopeng@xxxxxxxxxx> wrote:
> cpuset_can_attach() accumulates temporary SCHED_DEADLINE migration
> state in the destination cpuset while walking the taskset.
>
> If a later task_can_attach() or security_task_setscheduler() check
> fails, cgroup_migrate_execute() treats cpuset as the failing subsystem
> and does not call cpuset_cancel_attach() for it. The partially
> accumulated state is then left behind and can be consumed by a later
> attach, corrupting cpuset DL task accounting and pending DL bandwidth
> accounting.
>
> [...]

Reviewed-by: Juri Lelli <juri.lelli@xxxxxxxxxx>
Tested-by: Juri Lelli <juri.lelli@xxxxxxxxxx>

--
Juri Lelli <juri.lelli@xxxxxxxxxx>