Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1820185rwb; Wed, 5 Oct 2022 05:25:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hFZ6XRxj/XDAAlTb9Ae5TwxAlJ+BvmNxq/HRqjSijAJsfhNOYtyPDVnjS1HXmSXb5iXlI X-Received: by 2002:a63:8548:0:b0:44b:89d5:710 with SMTP id u69-20020a638548000000b0044b89d50710mr15856834pgd.124.1664972721033; Wed, 05 Oct 2022 05:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664972721; cv=none; d=google.com; s=arc-20160816; b=aofjm/+IcZd4/mp5Org2fwx0l/tk9F/VZ4iqzcuhh15IQLyiBqUR9QBrPzhnY2/qdo LL1LttbtA2DVX7NsafXQ6J9V1/RAehljsIzX+TJqJevw/H93NtHz4ZHMI0aQ5MyXIANQ koA4O66wxJ8BJfcqKlxEbEH1y2dvy5REft1yrPm05BdLZ/9T3mAWrLZS+eq9JDALupRc CwVioNb0dFnPb1IXqIJ00T+CBH+XrmyArZ0mP0ONwFmQrjpTTDb0c5CaIvUMtuM8AKJH P5x8Pl2vDygTBJminE7Y1lymkyvjPX6Behsq2cNaqBkaLrm/FD35HchZ/4vGw+R6mmoT TP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=sfr7N/gg/WvlqiHgA41Nb5x088okuEFeoadABhpbunM=; b=M64J8p07C+DO+zg5PAILqUESE5GUHhIIMSvjsjCj62hU+UYujt6i15YhnuLq5OWFbQ g9fy41AwAToGkLbVpLvDJPlW8firWt1OhTXXSlAFbSAow9eMOUpgNGTz3Al/9c7w+R2l 1C4ojEjEWn/Xi6l69aGD8uWlCRbSRb+YnDO2eqHNsmSkaW255y0cJf5nkUiSATaFFA14 bNPKowGUYI8TrlXr3dRRYH382WxQITXIRjqfV+HGrxKMGB3kwTxytZL97ZQms059rNcM drgU4LsTrfl3y8RBPT5XNz1fSqMiZ5/hBxTX97L/YBwrBaPtTZfjUkKVQHTp44l7NOsa XOBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RH6huhXa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170902d4d000b00172ccaf0c26si18082239plg.134.2022.10.05.05.25.09; Wed, 05 Oct 2022 05:25:21 -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=@linutronix.de header.s=2020 header.b=RH6huhXa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbiJEL0z (ORCPT + 99 others); Wed, 5 Oct 2022 07:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbiJEL0r (ORCPT ); Wed, 5 Oct 2022 07:26:47 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B9716715E; Wed, 5 Oct 2022 04:26:45 -0700 (PDT) Date: Wed, 05 Oct 2022 11:26:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1664969204; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sfr7N/gg/WvlqiHgA41Nb5x088okuEFeoadABhpbunM=; b=RH6huhXa5cZb45VhpA4PhlL6KAu6FTBwq5KE/XK299mpjBKTdJB9Xa96ecTewHQ0fMdOSz qj7usnPbo7z5rIJla7pmPZroaImWrgn2Yp9ntvki2vFoAfLzAuLd20CKR86XDRq5StNMI+ rW+pi5rmMjdD5D/Q5YCdsvdq+jgsvQDIt47hWN8YNEu7f3HawV5Y6Vw8E3Nks5cTnm4MBl ZudAK/bSxeI6A/taoJ02KYzzKPatz9QvOFeVBmMwXjcF2Zgx3e3WfAt06N2F0C7jHR6FAl IEUd8/uAxgtqdi1RWwREk2QmB0NW7jHGcLbmHiPyRDTpTfCkmxcWXK59aJbGEA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1664969204; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sfr7N/gg/WvlqiHgA41Nb5x088okuEFeoadABhpbunM=; b=D5RDCdkZAESi6K7zaDa4JqIf16/8vCkbLfGMlmBPXTwUjmDahagTqV0qHnGerruDJN66vJ rZR/GZl670kHPfAA== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf: Fix lockdep_assert_event_ctx() Cc: Borislav Petkov , Mark Rutland , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <166496920282.401.10655141862829069246.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 The following commit has been merged into the perf/core branch of tip: Commit-ID: 0ce38047e82a02017839b6cae837f13a1383a3a0 Gitweb: https://git.kernel.org/tip/0ce38047e82a02017839b6cae837f13a1383a3a0 Author: Peter Zijlstra AuthorDate: Tue, 04 Oct 2022 10:46:58 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 04 Oct 2022 13:32:08 +02:00 perf: Fix lockdep_assert_event_ctx() I'm a flamin' moron; because even after Mark told me it should be '&&' I still got it wrong in the final commit. Fixes: f3c0eba28704 ("perf: Add a few assertions") Reported-by: Borislav Petkov Reported-by: Mark Rutland Signed-off-by: Peter Zijlstra (Intel) Tested-by: Borislav Petkov Link: https://lkml.kernel.org/r/YvvIWmDBWdIUCMZj@FVFF77S0Q05N --- include/linux/perf_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index e9b151c..853f64b 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -644,7 +644,7 @@ struct pmu_event_list { #ifdef CONFIG_PROVE_LOCKING #define lockdep_assert_event_ctx(event) \ WARN_ON_ONCE(__lockdep_enabled && \ - (this_cpu_read(hardirqs_enabled) || \ + (this_cpu_read(hardirqs_enabled) && \ lockdep_is_held(&(event)->ctx->mutex) != LOCK_STATE_HELD)) #else #define lockdep_assert_event_ctx(event)