Skip to content

fs/resctrl: Fix four long-standing issues

Tony Luck linux-patches lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 7 repliesIn review
  2. v14 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fs/resctrl: Move functions to avoid forward references in subsequent fixesfs/resctrl/rdtgroup.c+188 -1881 reply
2/5fs/resctrl: Free mon_data structures on rdt_get_tree() failurefs/resctrl/rdtgroup.c+1 -02 replies
3/5fs/resctrl: Fix use-after-free during unmountfs/resctrl/rdtgroup.c+15 -01 reply
4/5fs/resctrl: Fix deadlock for errors during mountfs/resctrl/rdtgroup.c+55 -272 replies
5/5fs/resctrl: Fix issues with worker threads when CPUs are taken offlinefs/resctrl/monitor.c fs/resctrl/rdtgroup.c+75 -71 reply

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchChen Yu
1/5
2/5R-b
3/5
4/5
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] fs/resctrl: Fix four long-standing issues

Sashiko reported a deadlock during mount, and a use-after-free when an L3 domain is removed during CPU offline. Reinette found a memory leak in the mount error path while refactoring code for a solution to the mount hang. Sashiko found the unmount issue in review of v1 of this series.

First version of series posted here:

Numerous changes based on comments to v1.

Patch 1 just reorders some code so that fixes can be applied without adding additional forward declaration of functions.

Patch 2 fixes the memory leak found by Reinette

Patch 3 fixes use-after-free during unmount

Patch 4 fixes the mount deadlock

Patch 5 fixes issues with CPU offline

N.B. Reinette did all the work for patches 4 & 5, so I listed her as author an me as Co-developer. Those patches need her sign-off.

Reinette Chatre (2):
fs/resctrl: Fix deadlock for errors during mount fs/resctrl: Fix issues with worker threads when CPUs are taken offline

Tony Luck (3):
fs/resctrl: Move functions to avoid forward references in subsequent
fixes
fs/resctrl: Free mon_data structures on rdt_get_tree() failure fs/resctrl: Fix use-after-free during unmount

 fs/resctrl/monitor.c  |  55 +++++
 fs/resctrl/rdtgroup.c | 473 +++++++++++++++++++++++-------------------
 2 files changed, 320 insertions(+), 208 deletions(-)

base-commit: 5d6919055dec134de3c40167a490f33c74c12581

Signature · 1 line
2.54.0