Re: [RFC PATCH 1/3] fork,arm,x86,fs/resctrl: Fix stale resource group assignment vs copy_process()

From: Reinette Chatre

Date: Fri Dec 04 2026 - 14:08:20 EST


Hi Chenyu,

On 11/26/26 8:10 AM, Chen Yu wrote:
>
> OK, I think the current version is ok to fix the race, and we can deal with
> __resctrl_sched_in() later.
>
> I fed AI with the patch 3/3 to generate a simplified test script, and try
> to reproduce:
> 1. The frequent forked task f joins the task list with group m's RMID, which
> is freed by rmdir.
> 2. A later mkdir N reuses the freed RMID, and task f shows up in the new group N.
>
> Tested on a 160-CPU Intel server with the script, C does not show up in
> the new groups. 50 cycles passed.
>
> Tested-by: Chen Yu <yu.c.chen@xxxxxxxxx>
Thank you very much for this testing. Much appreciated.

Reinette