Skip to content

Fix kernfs node reference count leak issues

Xiaochen Shen lkml stable 1 version Applied

Status from this message: The following commit has been merged into the x86/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leakarch/x86/kernel/cpu/resctrl/rdtgroup.c+2 -331 reply
2/3x86/resctrl: Add necessary kernfs_put() calls to prevent refcount leakarch/x86/kernel/cpu/resctrl/rdtgroup.c+25 -70 replies
3/3x86/resctrl: Clean up unused function parameter in rmdir patharch/x86/kernel/cpu/resctrl/rdtgroup.c+7 -101 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchReinette ChatreWillem de Bruijn
1/3R-b T-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fix kernfs node reference count leak issues

Fix several kernfs node reference count leak issues:
(1) Remove superfluous kernfs_get() calls to prevent refcount leak
(2) Add necessary kernfs_put() calls to prevent refcount leak
(3) Follow-up cleanup for the change in previous patch.

Xiaochen Shen (3):
x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount
leak
x86/resctrl: Add necessary kernfs_put() calls to prevent refcount leak x86/resctrl: Clean up unused function parameter in rmdir path

 arch/x86/kernel/cpu/resctrl/rdtgroup.c | 82 ++++++++++++++--------------------
 1 file changed, 33 insertions(+), 49 deletions(-)
Signature · 1 line
1.8.3.1