Re: [PATCH 06/16] sched: Take cpuset_mutex for a deadline policy change only with pi

From: Mathieu Desnoyers

Date: Wed Nov 18 2026 - 16:09:22 EST


> This problem wasn't introduced by this patch, but can
> __sched_setscheduler() leak deadline bandwidth and cpuset deadline task
> counters if called on a zombie task [1]?

Yes. Patch 11 of this series fixes it: "sched/deadline: Reject
SCHED_DEADLINE on exited tasks". sched_setattr() then refuses
SCHED_DEADLINE for a task that has exited.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com