From patchwork Sun Oct 23 10:15:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 8003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1567636wrr; Sun, 23 Oct 2022 04:04:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hPUO0KI1U35CN0lBZeJFDONNy7mVeRNuoMt9WSLUAa3ILOOvuKH8UXybN8nV5RFrCHqbo X-Received: by 2002:a17:907:1687:b0:78e:4b6:1aff with SMTP id hc7-20020a170907168700b0078e04b61affmr22586068ejc.520.1666523095561; Sun, 23 Oct 2022 04:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666523095; cv=none; d=google.com; s=arc-20160816; b=RwAqaXBpdj7VDinUseXFNtMHGEWQG5KsaDAl9lVqjjMwChL0O3UCxak8cUYuryA5Xv pCdNDuH0FU2LpML8zOxL/xgXF5gFO3S/SrxpgL2+ooWsfatG/nvX+MpojaGrJ1frNUsB F4PVv2OW7uj4ogLzgm0WI7ZOBLDeBIoaSozHSf7dWtI2JbttJMU5YzFXZ6zWQikiZ5rJ m1Bf64k7hQnSOEChJnG62C4wMFtH+qy1mx4kKKDp2Y7YJJAmERVNCK8ixVEpvN1180YR QDS/IoOuNUhVF0YaQRTjQ6Db+fzo6o4f0a3AwqlghUcvXjNZEsNv9fIdlPGTSHkhqfGj 06sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=lUwWVi+RZkHeWALq2yE+VkXRFffNsKsCIXrbyEHrrzs=; b=Eqiio+OeSIhpf5hKQWYyg17/ugGBcQy+nRYu3pc2JWP/9NK51xyp99EGN0vs1bTiOk ohmtFkdrG64xFepHymtbwe52nCWh3G0VbOT9pD1CGDx01zcQwTqdHe0QiWmYnNzSxIv1 6w+uuAAQyvJZJKIuNU3zhVmt2CoPzYTHMCWVNIS/8hu56ArjAsE8eZv+sZpqQUqgGwMX 51vQ/sj+ErYqx1cLEu+ZcsuSEAdtefTWmaPHlYIIRX4EpFcSQfQgRik33ohSCj/voC4s R7oAKi5TDrch+MJyNPzjYrN4eCpxnnJHqV0Y2k9u0uH72Kz6lHb8/GBe+tKWvOFgjk+z vRYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=chW0KU0I; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=u9DNyhsf; 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=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a056402090d00b00458cd6f8506si31387683edz.173.2022.10.23.04.04.32; Sun, 23 Oct 2022 04:04:55 -0700 (PDT) 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=@suse.de header.s=susede2_rsa header.b=chW0KU0I; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=u9DNyhsf; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbiJWKPv (ORCPT + 99 others); Sun, 23 Oct 2022 06:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230286AbiJWKPt (ORCPT ); Sun, 23 Oct 2022 06:15:49 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4373757895 for ; Sun, 23 Oct 2022 03:15:43 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D17EC1FD4A; Sun, 23 Oct 2022 10:15:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666520141; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lUwWVi+RZkHeWALq2yE+VkXRFffNsKsCIXrbyEHrrzs=; b=chW0KU0ITFjg1b3cxgv8jNTZVBuMYEwJFLmD4c9OTcCkEsde64Idzk3wS1/wybO8QIpo6k K911yH0cM40ELMZpHCaGIzpr5lyf5BUop1n8nGebx+Nl/E/E1VRsA0aqiw2EmLutrU6BgB c/gj8QavotFVIH8QRe3gOXbU/hcsUFI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666520141; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lUwWVi+RZkHeWALq2yE+VkXRFffNsKsCIXrbyEHrrzs=; b=u9DNyhsfzK0vnP9MRPKpDX4LCci/NdXdPFfTeBaAOLtHg2I1Z5I35bGzkfmHFvlFcVmXsD 4AwmYNxkq6mQNcBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C4B8C139F0; Sun, 23 Oct 2022 10:15:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id urv4L00UVWPZQgAAMHmgww (envelope-from ); Sun, 23 Oct 2022 10:15:41 +0000 Date: Sun, 23 Oct 2022 12:15:37 +0200 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] perf/urgent for 6.1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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?1747476121168941837?= X-GMAIL-MSGID: =?utf-8?q?1747476121168941837?= Hi Linus, by popular demand, here are a couple of urgent perf fixes for 6.1. Please pull, thx. --- The following changes since commit 9abf2313adc1ca1b6180c508c25f22f9395cc780: Linux 6.1-rc1 (2022-10-16 15:36:24 -0700) 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_rc2 for you to fetch changes up to 21da7472a040420f2dc624ffec70291a72c5d6a6: bpf: Fix sample_flags for bpf_perf_event_output (2022-10-17 16:32:06 +0200) ---------------------------------------------------------------- - Fix raw data handling when perf events are used in bpf - Rework how SIGTRAPs get delivered to events to address a bunch of problems with it. Add a selftest for that too ---------------------------------------------------------------- Marco Elver (1): selftests/perf_events: Add a SIGTRAP stress test with disables Peter Zijlstra (1): perf: Fix missing SIGTRAPs Sumanth Korikkar (1): bpf: Fix sample_flags for bpf_perf_event_output include/linux/perf_event.h | 19 ++- kernel/events/core.c | 151 +++++++++++++++------ kernel/events/ring_buffer.c | 2 +- kernel/trace/bpf_trace.c | 2 + .../selftests/perf_events/sigtrap_threads.c | 35 ++++- 5 files changed, 163 insertions(+), 46 deletions(-)