[PATCH -next v2 0/4] cgroup/dmem: bugfixes

Chen Ridong posted 4 patches 4 days, 18 hours ago
kernel/cgroup/dmem.c | 85 +++++++++++++++++++++++++++++++++++++++-----
1 file changed, 76 insertions(+), 9 deletions(-)
[PATCH -next v2 0/4] cgroup/dmem: bugfixes
Posted by Chen Ridong 4 days, 18 hours ago
From: Chen Ridong <chenridong@huawei.com>

This patch series addresses three existing bugs in the cgroup/dmem
subsystem and adds a safety check for an exported API to prevent misuse.

---
v2:
 - patch 1/4: fix uninitialized region.
 - patch 4/4: new patch adding check for exported API.

Chen Ridong (4):
  cgroup/dmem: fix NULL pointer dereference when setting max
  cgroup/dmem: avoid rcu warning when unregister region
  cgroup/dmem: avoid pool UAF
  cgroup/dmem: add argument checks in helpers

 kernel/cgroup/dmem.c | 85 +++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 76 insertions(+), 9 deletions(-)

-- 
2.34.1
Re: [PATCH -next v2 0/4] cgroup/dmem: bugfixes
Posted by Tejun Heo 4 days, 14 hours ago
> Chen Ridong (4):
>   cgroup/dmem: fix NULL pointer dereference when setting max
>   cgroup/dmem: avoid rcu warning when unregister region
>   cgroup/dmem: avoid pool UAF
>   cgroup/dmem: add argument checks in helpers

Applied 1-3 to cgroup/for-6.19-fixes w/ stable tags added.

I dropped 4/4 as we don't want this kind of blanket input validation
unless there are specific reasons to do so.

Thanks.

--
tejun
Re: [PATCH -next v2 0/4] cgroup/dmem: bugfixes
Posted by Chen Ridong 4 days, 6 hours ago

On 2026/2/3 0:17, Tejun Heo wrote:
>> Chen Ridong (4):
>>   cgroup/dmem: fix NULL pointer dereference when setting max
>>   cgroup/dmem: avoid rcu warning when unregister region
>>   cgroup/dmem: avoid pool UAF
>>   cgroup/dmem: add argument checks in helpers
> 
> Applied 1-3 to cgroup/for-6.19-fixes w/ stable tags added.
> 
> I dropped 4/4 as we don't want this kind of blanket input validation
> unless there are specific reasons to do so.
> 

Thank you.

-- 
Best regards,
Ridong