From patchwork Sun Jan 1 15:14:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 37952 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3803758wrt; Sun, 1 Jan 2023 07:15:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuFbTkkw15cxubyhjo6jMdah5NOEhJskW+VuJjbfykRlyLHQZb3VoIW5UACOhOztbVkSz1q X-Received: by 2002:a17:902:7610:b0:192:751d:b2e4 with SMTP id k16-20020a170902761000b00192751db2e4mr23183803pll.48.1672586117330; Sun, 01 Jan 2023 07:15:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672586117; cv=none; d=google.com; s=arc-20160816; b=vILXdwdfxSJvbn8PjY6FCpFpyvGP1qztS1ZWUzfuXR+hfO3Ptorrch7umDtdhT/c1R /V3D//fKEJ5dDBt6e3t4vr7ctCDs/ZVHlanDR9JKtkKZL3PAYpfp/HtGXIU8g4zseVtM 3TdVT8lcFuEcOavoD4M/5w36Bum7Gtk+Gc/FlP5xLEDO40+fLG2IqHA88APi6UuQaiag iLd9Dn9TAb5EOFHLkG19Wz5oGJwHOJFZ1XzDpNLtZu3u3/cCZmQ/q6tKILIIOGq4KvXB yfgxNxBbS9Xq+oh30D+PyOc7QED0QX99KLnkFPQGwY1kOReInFwAkxEftYiY1iiPiKGZ RSWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=8WTBXOJ7kDhaJ6BH3e5mWzHknjWYDO/53zFnNqqheYc=; b=k0JJ0sJewoZmQXATlPgmL2CDZlQbJFIg8eyPx9KhneNnvVmZz2GRg0FaYqQk1qD7rS Q2Lt8Q/SPsAr0qTjkVsPOeVhpcgxrcnnALCkqVHWZJg1XNAPP+Fb4TZmD4ubcP32Nj5c yBm7QAlUtGdLH1SkCoPBLFlSxEwx3srqXi5Ww1dQCdOLGWVMmKGymD+U8+qxy2AZKpPM 1YT3vt5JzLqxOEuFQx9Jje8pqijDjIDSsSNxWXhoUfu3m/RQ6FXMr0ql5u+gPn5Nf/7a kkxzE9bpMZHvaPMcV5voMZMkG2zFpfSvFAlXE27omkcvGsqnO7uWTscbzjlAb0Yu4pJQ xxGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=rk1Dc2nq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a170902e74400b001897e34ac5dsi29355189plf.289.2023.01.01.07.15.05; Sun, 01 Jan 2023 07:15:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=rk1Dc2nq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231281AbjAAPOz (ORCPT + 99 others); Sun, 1 Jan 2023 10:14:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjAAPOx (ORCPT ); Sun, 1 Jan 2023 10:14:53 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE4EBEA1 for ; Sun, 1 Jan 2023 07:14:52 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C389F1EC0104; Sun, 1 Jan 2023 16:14:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1672586090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:references; bh=8WTBXOJ7kDhaJ6BH3e5mWzHknjWYDO/53zFnNqqheYc=; b=rk1Dc2nqn2dpB/3jLs7Pi1nQQ/7naHfw7oCf45it4OU9L6dbaQ6CtJ1ug4/iPHNhm7tDuI Zj6+pFS/ODb52BkoFIMUlpyOXFKlnq5akigYD74E4bIdw7G1iJjvH8Xt41OTEsJwbfLdzW /1b/j7WJfxoLiQtReskBkbV54igz3fo= Date: Sun, 1 Jan 2023 16:14:50 +0100 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] perf/urgent for v6.2-rc2 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753833660745916369?= X-GMAIL-MSGID: =?utf-8?q?1753833660745916369?= 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(-)