1
linux/drivers/perf
Alexandre Ghiti 57f7c7dc78
drivers: perf: Fix wrong put_cpu() placement
Unfortunately, the wrong patch version was merged which places the
put_cpu() after enabling a static key, which is not safe as pointed by
Will [1], so move put_cpu() before to avoid this.

Fixes: 2840dadf0d ("drivers: perf: Fix smp_processor_id() use in preemptible code")
Reported-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/all/20240827125335.GD4772@willie-the-truck/ [1]
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20241112113422.617954-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-11-12 07:34:27 -08:00
..
amlogic perf/amlogic: Assign parents for event_source devices 2024-04-19 15:59:29 +01:00
arm_cspmu perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
hisilicon drivers/perf: hisi_pcie: Export supported Root Ports [bdf_min, bdf_max] 2024-08-30 11:43:10 +01:00
alibaba_uncore_drw_pmu.c drivers/perf: Fix ali_drw_pmu driver interrupt status clearing 2024-08-23 16:03:56 +01:00
apple_m1_cpu_pmu.c drivers/perf: apple_m1: add known PMU events 2024-08-23 15:52:48 +01:00
arm_dmc620_pmu.c perf/arm-dmc620: Fix lockdep assert in ->event_init() 2024-05-17 16:48:05 +01:00
arm_dsu_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
arm_pmu_acpi.c
arm_pmu_platform.c perf: arm_pmu: Use of_property_present() 2024-08-16 13:08:21 +01:00
arm_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_pmuv3.c perf: arm_pmuv3: Use BR_RETIRED for HW branch event if enabled 2024-09-09 15:28:02 +01:00
arm_smmuv3_pmu.c perf/arm-smmuv3: Assign parents for event_source device 2024-04-19 15:59:31 +01:00
arm_spe_pmu.c drivers/perf: arm_spe: Use perf_allow_kernel() for permissions 2024-08-30 11:42:24 +01:00
arm_v6_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_v7_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm_xscale_pmu.c perf: arm_pmu: Remove event index to counter remapping 2024-08-16 13:09:11 +01:00
arm-cci.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
arm-ccn.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
arm-cmn.c perf/arm-cmn: Improve format attr printing 2024-09-06 12:58:06 +01:00
arm-ni.c perf: arm-ni: Fix an NULL vs IS_ERR() bug 2024-09-12 12:49:33 +01:00
cxl_pmu.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
dwc_pcie_pmu.c perf/dwc_pcie: Add support for QCOM vendor devices 2024-08-23 16:07:26 +01:00
fsl_imx8_ddr_perf.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
fsl_imx9_ddr_perf.c perf: imx_perf: add support for i.MX95 platform 2024-07-01 15:42:59 +01:00
Kconfig perf: Add driver for Arm NI-700 interconnect PMU 2024-09-06 12:58:28 +01:00
Makefile perf: Add driver for Arm NI-700 interconnect PMU 2024-09-06 12:58:28 +01:00
marvell_cn10k_ddr_pmu.c perf: add missing MODULE_DESCRIPTION() macros 2024-07-10 13:04:38 +01:00
marvell_cn10k_tad_pmu.c perf: marvell_cn10k_tad: Convert to platform remove callback returning void 2024-02-09 15:59:30 +00:00
qcom_l2_pmu.c perf/qcom: Assign parents for event_source devices 2024-04-19 15:59:30 +01:00
qcom_l3_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00
riscv_pmu_legacy.c drivers/perf: riscv: Align errno for unsupported perf event 2024-10-01 02:47:39 -07:00
riscv_pmu_sbi.c drivers: perf: Fix wrong put_cpu() placement 2024-11-12 07:34:27 -08:00
riscv_pmu.c drivers/perf: riscv: Remove redundant macro check 2024-09-15 20:15:48 -07:00
starfive_starlink_pmu.c perf: starfive: Add StarLink PMU support 2024-03-04 14:19:48 +00:00
thunderx2_pmu.c perf/thunderx2: Assign parents for event_source devices 2024-04-19 15:59:29 +01:00
xgene_pmu.c Driver core changes for 6.10-rc1 2024-05-22 12:13:40 -07:00