Re: [PATCH v2] fs/resctrl: Use open-time credentials for task move permission checks
From: Hungyu Lin
Date: Fri Dec 04 2026 - 15:31:34 EST
On Fri, Nov 20, 2026 at 1:00 AM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> Writing a PID to a resctrl group's "tasks" file moves that task into the
> group. Whether the move is allowed depends on the PID written, so
> rdtgroup_task_write_permission() checks it at write time, applying the
> same cred_ids_allow_move() rule as __cgroup1_procs_write().
>
> It checks current's credentials. That may allow a less privileged
> process to trick a more privileged one into writing into a fd that it
> opened. Commit 1756d7994ad8 ("cgroup: Use open-time credentials for
> process migraton perm checks") closed the same hole in cgroup by using
> the credentials saved at open time. rdtgroup_task_write_permission()
> still uses current_cred().
Tony, Reinette, gentle ping. This still applies cleanly to tip/master
and linux-next. Could you take a look?
Thanks,
Hungyu