Re: [PATCH] exec: do not call sched_mm_cid_after_execve() on exec fail

From: Jinchao Wang
Date: Wed Dec 24 2025 - 19:02:14 EST


On Wed, Dec 24, 2025 at 08:52:16AM -0500, Mathieu Desnoyers wrote:
> On 2025-12-24 07:10, Jinchao Wang wrote:
> > On Thu, Dec 18, 2025 at 11:23:23AM +0800, Jinchao Wang wrote:
> >
> > Hi, mathieu
> >
> > Please review this patch for mm_cid.
>
> Nack. Your fix lacks context and removes a needed call in the
> common case to fix what I understand to be a init task issue.
>
> See this patch instead which addresses an issue very similar to
> yours removing the relevant sched_mm_cid_after_exec() call:
>
> https://lore.kernel.org/lkml/20251223215113.639686-1-xiyou.wangcong@xxxxxxxxx/

Yes, they are same issue and this patch works.
Thanks.

>
> I added Thomas Gleixner in CC.
>
> Thanks,
>
> Mathieu
>
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> https://www.efficios.com