mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
When we fail to register the uncore pmu, the pmu context may not been allocated. The error handing will call cpuhp_state_remove_instance() to call uncore pmu offline callback, which migrate the pmu context. Since that's liable to lead to some kind of use-after-free. Use cpuhp_state_remove_instance_nocalls() instead of cpuhp_state_remove_instance() so that the notifiers don't execute after the PMU device has been failed to register. Fixes: |
History
|
|
|---|---|---|
| .. | ||
| hisi_pcie_pmu.c | ||
| hisi_uncore_cpa_pmu.c | ||
| hisi_uncore_ddrc_pmu.c | ||
| hisi_uncore_hha_pmu.c | ||
| hisi_uncore_l3c_pmu.c | ||
| hisi_uncore_pa_pmu.c | ||
| hisi_uncore_pmu.c | ||
| hisi_uncore_pmu.h | ||
| hisi_uncore_sllc_pmu.c | ||
| hisi_uncore_uc_pmu.c | ||
| hns3_pmu.c | ||
| Kconfig | ||
| Makefile | ||