Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48410491 authored by Shawn Wang's avatar Shawn Wang Committed by Greg Kroah-Hartman
Browse files

x86/resctrl: Only show tasks' pid in current pid namespace



[ Upstream commit 2997d94b5dd0e8b10076f5e0b6f18410c73e28bd ]

When writing a task id to the "tasks" file in an rdtgroup,
rdtgroup_tasks_write() treats the pid as a number in the current pid
namespace. But when reading the "tasks" file, rdtgroup_tasks_show() shows
the list of global pids from the init namespace, which is confusing and
incorrect.

To be more robust, let the "tasks" file only show pids in the current pid
namespace.

Fixes: e02737d5 ("x86/intel_rdt: Add tasks files")
Signed-off-by: default avatarShawn Wang <shawnwang@linux.alibaba.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Acked-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Acked-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Tested-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/all/20230116071246.97717-1-shawnwang@linux.alibaba.com/


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7206eca1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment