mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] perf/amd/ibs: Assorted fixes
@ 2026-10-26  4:18 Ravi Bangoria
  2026-10-26  4:18 ` [PATCH v2 1/3] perf/amd/ibs: Reset CPU0 IBS state on syscore resume Ravi Bangoria
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ravi Bangoria @ 2026-10-26  4:18 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Jim Mattson
  Cc: Ravi Bangoria, Jayapal Ashwin Nair, Gennady Kupava, Dapeng Mi,
	Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, x86,
	linux-perf-users, linux-kernel, Santosh Shukla, Ananth Narayan,
	Sandipan Das, Manali Shukla

#1 Set IBS MSRs in syscore->resume() callback
#2 Fix kernel address leak through REGS_USER and REGS_INTR
#3 Fix races by reducing SW states when IBS_CAPS_DIS is present

v1: https://lore.kernel.org/r/20261015060430.5877-1-ravi.bangoria@amd.com
v1->v2:
- Use interrupt registers when preparing REGS_USER and REGS_INTR. In
  addition to fixing the kernel address leak, this change also ensures
  GPR snapshot consistency, which resolves the DWARF unwinding issue
  with IBS [1].

[1] https://lore.kernel.org/r/CAPu-DQqF0aF6=GS8Z6KKWeeX_V5LiXeKU_rJQZC+uGg8zuTPNw@mail.gmail.com 

Ravi Bangoria (3):
  perf/amd/ibs: Reset CPU0 IBS state on syscore resume
  perf/amd/ibs: Fix kernel address leak via REGS_USER and REGS_INTR
  perf/amd/ibs: Simplify event state handling with IBS_CAPS_DIS

 arch/x86/events/amd/ibs.c  | 197 ++++++++++++++++++++++++++++++++-----
 include/linux/perf_event.h |   6 ++
 kernel/events/core.c       |  10 +-
 3 files changed, 184 insertions(+), 29 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-26 17:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26  4:18 [PATCH v2 0/3] perf/amd/ibs: Assorted fixes Ravi Bangoria
2026-10-26  4:18 ` [PATCH v2 1/3] perf/amd/ibs: Reset CPU0 IBS state on syscore resume Ravi Bangoria
2026-10-26  4:18 ` [PATCH v2 2/3] perf/amd/ibs: Fix kernel address leak via REGS_USER and REGS_INTR Ravi Bangoria
2026-10-26  5:52   ` Jayapal Ashwin Nair
2026-10-26  9:14   ` Mi, Dapeng
2026-10-26 17:51   ` Jim Mattson
2026-10-26  4:18 ` [PATCH v3 3/3] perf/amd/ibs: Simplify event state handling with IBS_CAPS_DIS Ravi Bangoria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®