linux/fs/resctrl
Reinette Chatre b9f089723a fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list
A pseudo-locked group's RMID is freed when it is created. On unmount
rmdir_all_sub() unconditionally frees all RMID of all groups, resulting
in a double-free of the pseudo-locked group's RMID. The consequence of this
is that the original free results in the pseudo-locked group's RMID being
added to the rmid_free_lru linked list and the second free then attempts
to add the same RMID entry to the rmid_free_lru again.

Do not double-free a pseudo-locked group's RMID.

Fixes: e0bdfe8e36 ("x86/intel_rdt: Support creation/removal of pseudo-locked region")
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://patch.msgid.link/551432dd7e624a862b8e58314c38aaba0afff3e9.1783377598.git.reinette.chatre@intel.com
2026-07-06 19:05:49 -07:00
..
ctrlmondata.c fs/resctrl: Add "*" shorthand to set io_alloc CBM for all domains 2026-04-02 00:22:59 +02:00
internal.h x86,fs/resctrl: Create 'event_filter' files read only if they're not configurable 2026-05-06 19:06:57 +02:00
Kconfig
Makefile
monitor_trace.h
monitor.c x86,fs/resctrl: Prevent out-of-bounds access while offlining CPU when SNC enabled 2026-07-01 13:15:02 -07:00
pseudo_lock.c mm: reintroduce vma_desc_test() as a singular flag test 2026-04-05 13:53:19 -07:00
rdtgroup.c fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list 2026-07-06 19:05:49 -07:00