Re: [PATCH v2 sched_ext/for-7.1-fixes] sched_ext: Fix ops->priv clobber on concurrent attach/detach
From: Andrea Righi
Date: Mon May 11 2026 - 04:20:26 EST
On Sun, May 10, 2026 at 09:47:52PM -1000, Tejun Heo wrote:
> Hello, Andrea.
>
> Applied to sched_ext/for-7.1-fixes.
>
> One followup if you have cycles: scx_alloc_and_add_sched() can still
> fail after rcu_assign_pointer(ops->priv, sch) (sub-sched
> kzalloc/kstrdup and kobject paths). With the new gate, that would
> leave the kdata permanently -EBUSY. Could probably be addressed by
> clearing @ops->priv on those error paths.
Ah! Makes sense, I'll send a follow-up patch.
Thanks,
-Andrea