[GIT PULL] perf/urgent for v5.17-rc3

From: Borislav Petkov
Date: Sun Feb 06 2022 - 07:30:35 EST


Hi Linus,

please pull a couple of urgent perf fixes for 5.17.

Thx.

---

The following changes since commit 26291c54e111ff6ba87a164d85d4a4e134b7315c:

Linux 5.17-rc2 (2022-01-30 15:37:07 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/perf_urgent_for_v5.17_rc3

for you to fetch changes up to 1d9093457b243061a9bba23543c38726e864a643:

perf/x86/intel/pt: Fix crash with stop filters in single-range mode (2022-02-02 13:11:40 +0100)

----------------------------------------------------------------
perf/urgent contains 3 fixups:

- Intel/PT: filters could crash the kernel

- Intel: default disable the PMU for SMM, some new-ish EFI firmware has
started using CPL3 and the PMU CPL filters don't discriminate against
SMM, meaning that CPL3 (userspace only) events now also count EFI/SMM
cycles.

- Fixup for perf_event_attr::sig_data

(Peter Zijlstra)

----------------------------------------------------------------
Marco Elver (3):
perf: Copy perf_event_attr::sig_data on modification
selftests/perf_events: Test modification of perf_event_attr::sig_data
perf: uapi: Document perf_event_attr::sig_data truncation on 32 bit architectures

Peter Zijlstra (1):
x86/perf: Default set FREEZE_ON_SMI for all

Tristan Hume (1):
perf/x86/intel/pt: Fix crash with stop filters in single-range mode

arch/x86/events/intel/core.c | 13 +++++++++++++
arch/x86/events/intel/pt.c | 5 +++--
include/uapi/linux/perf_event.h | 2 ++
kernel/events/core.c | 16 ++++++++++++++++
tools/testing/selftests/perf_events/sigtrap_threads.c | 17 +++++++++--------
5 files changed, 43 insertions(+), 10 deletions(-)

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg