[GIT PULL] perf/urgent for v6.2-rc2

From: Borislav Petkov
Date: Sun Jan 01 2023 - 10:34:52 EST


Hi Linus,

please pull a bunch of urgent perf events fixes for 6.2.

Thx.

---

The following changes since commit 1b929c02afd37871d5afb9d498426f83432e71c2:

Linux 6.2-rc1 (2022-12-25 13:41:39 -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.2_rc2

for you to fetch changes up to 0a041ebca4956292cadfb14a63ace3a9c1dcb0a3:

perf/core: Call LSM hook after copying perf_event_attr (2022-12-27 12:44:01 +0100)

----------------------------------------------------------------
- Pass only an initialized perf event attribute to the LSM hook

- Fix a use-after-free on the perf syscall's error path

- A potential integer overflow fix in amd_core_pmu_init()

- Fix the cgroup events tracking after the context handling rewrite

- Return the proper value from the inherit_event() function on error

----------------------------------------------------------------
Chengming Zhou (1):
perf/core: Fix cgroup events tracking

Colin Ian King (1):
perf/x86/amd: fix potential integer overflow on shift of a int

Namhyung Kim (1):
perf/core: Call LSM hook after copying perf_event_attr

Peter Zijlstra (1):
perf: Fix use-after-free in error path

Ravi Bangoria (1):
perf core: Return error pointer if inherit_event() fails to find pmu_ctx

arch/x86/events/amd/core.c | 2 +-
kernel/events/core.c | 54 +++++++++++++++-------------------------------
2 files changed, 18 insertions(+), 38 deletions(-)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette