1
0
Fork 0
alistair23-linux/drivers/perf/hisilicon
Qi Liu 5345ede4ac drivers/perf: Prevent forced unbinding of PMU drivers
[ Upstream commit f32ed8eb0e ]

Forcefully unbinding PMU drivers during perf sampling will lead to
a kernel panic, because the perf upper-layer framework call a NULL
pointer in this situation.

To solve this issue, "suppress_bind_attrs" should be set to true, so
that bind/unbind can be disabled via sysfs and prevent unbinding PMU
drivers during perf sampling.

Signed-off-by: Qi Liu <liuqi115@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1594975763-32966-1-git-send-email-liuqi115@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-29 10:18:40 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
hisi_uncore_ddrc_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
hisi_uncore_hha_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
hisi_uncore_l3c_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
hisi_uncore_pmu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
hisi_uncore_pmu.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00