[GIT PULL] perf/urgent for 6.1-rc6

From: Borislav Petkov
Date: Sun Nov 20 2022 - 06:24:47 EST


Hi Linus,

please pull a couple of urgent perf fixes for 6.1.

Thx.

---

The following changes since commit f0c4d9fc9cc9462659728d168387191387e903cc:

Linux 6.1-rc4 (2022-11-06 15:07:11 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/perf_urgent_for_v6.1_rc6

for you to fetch changes up to ce0d998be9274dd3a3d971cbeaa6fe28fd2c3062:

perf/x86/intel/pt: Fix sampling using single range output (2022-11-16 10:12:59 +0100)

----------------------------------------------------------------
- Fix an intel PT erratum where CPUs do not support single range output
for more than 4K

- Fix a NULL ptr dereference which can happen after an NMI interferes
with the event enabling dance in amd_pmu_enable_all()

- Free the events array too when freeing uncore contexts on CPU online,
thereby fixing a memory leak

- Improve the pending SIGTRAP check

----------------------------------------------------------------
Adrian Hunter (1):
perf/x86/intel/pt: Fix sampling using single range output

Marco Elver (1):
perf: Improve missing SIGTRAP checking

Ravi Bangoria (1):
perf/x86/amd: Fix crash due to race between amd_pmu_enable_all, perf NMI and throttling

Sandipan Das (1):
perf/x86/amd/uncore: Fix memory leak for events array

arch/x86/events/amd/core.c | 5 ++---
arch/x86/events/amd/uncore.c | 1 +
arch/x86/events/intel/pt.c | 9 +++++++++
kernel/events/core.c | 25 +++++++++++++++++++------
4 files changed, 31 insertions(+), 9 deletions(-)

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman
(HRB 36809, AG Nürnberg)