[PATCH 0/4] fs/resctrl: Fix three long-standing issues
From: Tony Luck
Date: Fri May 08 2026 - 14:21:53 EST
Sashiko reported[0] 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.
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 the mount deadlock[1]
Patch 4 fixes issues with CPU offline.[2]
N.B. Reinette did all the work for patches 3 & 4, so I listed her
as author an me as Co-developer. Those patches need her sign-off.
[0] Sashiko report:
Link: https://sashiko.dev/#/patchset/20260429184858.36423-1-tony.luck%40intel.com
[1] This is v3 of the deadlock fix. Previous version is here:
Link: https://lore.kernel.org/all/20260504220149.157753-1-tony.luck@xxxxxxxxx/
[2] This is v2 of the CPU offline fix. Previous version is here:
Link: https://lore.kernel.org/all/20260501213611.25600-1-tony.luck@xxxxxxxxx/
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 (2):
fs/resctrl: Move functions to avoid forward references in subsequent
fixes
fs/resctrl: Free mon_data structures on rdt_get_tree() failure
fs/resctrl/monitor.c | 55 ++++++
fs/resctrl/rdtgroup.c | 440 ++++++++++++++++++++++--------------------
2 files changed, 287 insertions(+), 208 deletions(-)
--
2.54.0