diff options
| author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2026-04-30 08:11:03 -0700 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-05-07 16:06:29 +0300 |
| commit | 14473e8c4e97d51eff9b2f384ae696f7a32f182b (patch) | |
| tree | 5ada87b47f50f743fb5ae3b089a42dfbd5fe5e4b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 57c347a2e2473bfb5c1f1132a3209c55efbe640b (diff) | |
| download | linux-14473e8c4e97d51eff9b2f384ae696f7a32f182b.tar.gz linux-14473e8c4e97d51eff9b2f384ae696f7a32f182b.zip | |
platform/x86/intel/tpmi/plr: Prevent fault during unbind
This driver faults when intel vsec driver is unbound from PCI driver
interface. For example:
echo 0000:00:03.1 > /sys/bus/pci/drivers/intel_vsec/unbind
This is caused by accessing plr->dbgfs_dir after vsec_tpmi driver is
removed. Here vsec_tpmi driver is the parent. On unbind, the parent
device remove callback is called first which here will remove debugfs
interface. Hence plr->dbgfs_dir is no longer valid.
Register notifier for TPMI_CORE_EXIT and make this pointer to NULL,
so that debugfs_remove_recursive() is not called with bad plr->dbgfs_dir
pointer.
After notifier is returned the vsec_tpmi driver will call remove debugfs
by calling debugfs_remove_recursive().
Fixes: 811f67c51636 ("platform/x86/intel/tpmi: Add new auxiliary driver for performance limits")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Stable@vger.kernel.org
Link: https://patch.msgid.link/20260430151103.1549733-4-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
