diff options
| author | Ben Horgan <ben.horgan@arm.com> | 2026-08-06 15:46:31 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-08-07 11:57:04 +0000 |
| commit | bb1a0f582d519c0461b0940116e2b52c5ba31459 (patch) | |
| tree | 6dcdd6b0f34e758c63dbf4995b01542885aef748 /tools/perf/scripts/python/bin | |
| parent | fc996c39689bb15aa80e5366809434f7258fb703 (diff) | |
arm_mpam: Disable driver unbind to avoid UAF
When a user unbinds an MSC and that MSC is the only MSC left for a
component then the corresponding mpam_component will be freed. If the user
then goes on to read the schemata file in the resctrl filesystem then the
mpam_component will be accessed from resctrl_arch_get_config() leading to a
use after free.
As the MPAM driver is not a module the unbind sysfs interface is the only
way to trigger the remove. Instead of dealing with the complexity of
allowing some unused MSC to unbind just remove the unbind sysfs interface.
Fixes: f04046f2577a ("arm_mpam: Add probe/remove for mpam msc driver and kbuild boiler plate")
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
