Linus,
Please pull the latest perf/urgent Git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2024-04-14
# HEAD: dec8ced871e17eea46f097542dd074d022be4bd1 perf/x86: Fix out of range data
Fix the x86 PMU multi-counter code returning invalid
data in certain circumstances.
Thanks,
Ingo
------------------>
Namhyung Kim (1):
perf/x86: Fix out of range data
arch/x86/events/core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
index 09050641ce5d..5b0dd07b1ef1 100644
--- a/arch/x86/events/core.c
+++ b/arch/x86/events/core.c
@@ -1644,6 +1644,7 @@ static void x86_pmu_del(struct perf_event *event, int flags)
while (++i < cpuc->n_events) {
cpuc->event_list[i-1] = cpuc->event_list[i];
cpuc->event_constraint[i-1] = cpuc->event_constraint[i];
+ cpuc->assign[i-1] = cpuc->assign[i];
}
cpuc->event_constraint[i-1] = NULL;
--cpuc->n_events;
The pull request you sent on Sun, 14 Apr 2024 10:25:50 +0200:
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2024-04-14
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a1505c47e78a4d4837e2c72b2d5f51e821689349
Thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html