Skip to content

perf/amd/ibs: Assorted fixes

Ravi Bangoria linux-perf-users lkml 2 versions – Applied

Status from this message: The following commit has been merged into the perf/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 of 3 patches 3 repliesApplied
  2. v2 posting 1/25 patches 9 repliesApplied

Changes in v2 from the cover letter

- 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

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3perf/amd/ibs: Reset CPU0 IBS state on syscore resumearch/x86/events/amd/ibs.c+1 -10 replies
2/3perf/amd/ibs: Fix kernel address leak via REGS_USER and REGS_INTRarch/x86/events/amd/ibs.c include/linux/perf_event.h kernel/events/core.c+61 -53 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJim MattsonJayapal Ashwin NairDapeng Mi
SeriesR-b
1/3R-b
2/3R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] perf/amd/ibs: Assorted fixes

#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/[email protected]
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(-)
Signature · 1 line
2.55.0