RE: [PATCH v2] fs/resctrl: Use open-time credentials for task move permission checks
From: Luck, Tony
Date: Fri Dec 04 2026 - 16:21:20 EST
> > 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/maste
> and linux-next. Could you take a look?
I don't understand how the "trick" happens. I looked at the cgroup fix
this is modelled on, and see the same pattern. But without details of
the trick. The cgroup commit has a Reported-by tag, but no Link: to
that report.
-Tony