mirror-linux/arch/x86/events/intel
Ian Rogers dbde07f062 perf/x86: Fix potential bad container_of in intel_pmu_hw_config
Auto counter reload may have a group of events with software events
present within it. The software event PMU isn't the x86_hybrid_pmu and
a container_of operation in intel_pmu_set_acr_caused_constr (via the
hybrid helper) could cause out of bound memory reads. Avoid this by
guarding the call to intel_pmu_set_acr_caused_constr with an
is_x86_event check.

Fixes: ec980e4fac ("perf/x86/intel: Support auto counter reload")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Falcon <thomas.falcon@intel.com>
Link: https://patch.msgid.link/20260312194305.1834035-1-irogers@google.com
2026-04-02 13:49:16 +02:00
..
Makefile perf/x86/intel/uncore: Parse uncore discovery tables 2021-04-02 10:04:54 +02:00
bts.c perf/x86/intel: Use early_initcall() to hook bts_init() 2025-08-21 20:09:26 +02:00
core.c perf/x86: Fix potential bad container_of in intel_pmu_hw_config 2026-04-02 13:49:16 +02:00
cstate.c perf/x86/cstate: Add Airmont NP 2025-12-17 13:31:09 +01:00
ds.c perf/x86/intel: Fix OMR snoop information parsing issues 2026-03-12 11:29:16 +01:00
knc.c Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
lbr.c x86: Restrict KVM-induced symbol exports to KVM modules where obvious/possible 2025-11-12 15:29:38 -08:00
p4.c Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
p6.c perf/x86: Use macros to replace magic numbers in attr_rdpmc 2026-01-15 10:04:27 +01:00
pt.c x86: Restrict KVM-induced symbol exports to KVM modules where obvious/possible 2025-11-12 15:29:38 -08:00
pt.h x86/cpu: Move TSC CPUID leaf definition 2024-12-18 06:17:36 -08:00
uncore.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
uncore.h perf/x86/intel/uncore: Add Nova Lake support 2026-01-06 16:34:26 +01:00
uncore_discovery.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
uncore_discovery.h perf/x86/intel/uncore: Add Nova Lake support 2026-01-06 16:34:26 +01:00
uncore_nhmex.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
uncore_snb.c perf/x86/intel/uncore: Convert comma to semicolon 2026-01-15 10:04:28 +01:00
uncore_snbep.c perf/x86/intel/uncore: Add per-scheduler IMC CAS count events 2026-02-23 11:19:25 +01:00