opnsense-src/sys/dev/hwpmc
Bojan Novković 6e8233df18 hwpmc_x86: Fix NULL deref when loading on unsupported hardware
The pmc_md_{intialize, finalize} routines rely on a machine-dependent
structure to register the appropriate PMC interrupt handler. However,
the vendor-specific routines that allocate this structure may return
NULL for unsupported hardware, leading to a panic when the hwpmc module
gets loaded. This patch adds additional checks that fix this issue.

Reported by:	Michael Butler (imb@protected-networks.net)
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D48168
2024-12-23 11:00:57 +01:00
..
hwpmc_amd.c
hwpmc_amd.h
hwpmc_arm.c
hwpmc_arm64.c hwpmc/arm64: Support the kernel booting to VHE 2024-06-25 09:07:19 +00:00
hwpmc_arm64.h hwpmc/arm64: fix the type for pm_arm64_evsel 2024-06-25 09:07:19 +00:00
hwpmc_arm64_md.c
hwpmc_armv7.c
hwpmc_armv7.h
hwpmc_cmn600.c
hwpmc_cmn600.h
hwpmc_core.c x86: Allow sharing of perfomance counter interrupts 2024-12-15 16:39:36 +01:00
hwpmc_core.h
hwpmc_dmc620.c
hwpmc_dmc620.h
hwpmc_e500.c
hwpmc_intel.c
hwpmc_logging.c hwpmc: Restore line lost in previous commit 2024-11-28 11:53:24 -05:00
hwpmc_mod.c
hwpmc_mpc7xxx.c
hwpmc_power8.c
hwpmc_powerpc.c
hwpmc_powerpc.h
hwpmc_ppc970.c
hwpmc_riscv.h
hwpmc_soft.c
hwpmc_soft.h
hwpmc_tsc.c
hwpmc_tsc.h
hwpmc_uncore.c
hwpmc_uncore.h
hwpmc_x86.c hwpmc_x86: Fix NULL deref when loading on unsupported hardware 2024-12-23 11:00:57 +01:00
pmc_events.h
pmu_dmc620.c
pmu_dmc620_reg.h