Re: [PATCH v2 2/2] cgroup/psi: Set of->priv to NULL upon file release
From: Greg KH
Date: Sat Aug 23 2025 - 02:44:08 EST
On Fri, Aug 22, 2025 at 07:48:08AM -1000, Tejun Heo wrote:
> On Fri, Aug 22, 2025 at 07:07:15AM +0000, Chen Ridong wrote:
> > From: Chen Ridong <chenridong@xxxxxxxxxx>
> >
> > Setting of->priv to NULL when the file is released enables earlier bug
> > detection. This allows potential bugs to manifest as NULL pointer
> > dereferences rather than use-after-free errors[1], which are generally more
> > difficult to diagnose.
> >
> > [1] https://lore.kernel.org/cgroups/38ef3ff9-b380-44f0-9315-8b3714b0948d@xxxxxxxxxxxxxxx/T/#m8a3b3f88f0ff3da5925d342e90043394f8b2091b
> > Signed-off-by: Chen Ridong <chenridong@xxxxxxxxxx>
>
> Applied to cgroup/for-6.17-fixes.
Both or just this second patch? Should I take the first through the
driver-core tree, or do you want to take it through the cgroup tree? No
objection from me for you to take both :)
thanks,
greg k-h