From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F12A2C48BC2 for ; Wed, 23 Jun 2021 08:19:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC39161358 for ; Wed, 23 Jun 2021 08:19:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbhFWIVd (ORCPT ); Wed, 23 Jun 2021 04:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbhFWIV2 (ORCPT ); Wed, 23 Jun 2021 04:21:28 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8A1FC061756; Wed, 23 Jun 2021 01:19:10 -0700 (PDT) Date: Wed, 23 Jun 2021 08:19:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1624436348; 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=A9+mXy6PlzhYxwKHjP6l72LS8Lbp638w1IPEBMM20S0=; b=bkcAEbD+CYtPPrNOPjK/xyLV4Uz522PfRus7WlYbSdnpGaAMlsV7pa3PWr+wLDV1ukaM56 pYwUggi3fWX9/q+lratjPJOsUDmkFUTHc3zu6C6y6PsU727tnyxoOvVWYHmnKRYhHRv8HR pAaQUKSBhsDDDttGT+pAiA/gjB1OVO3ylplY53iNddLVye/a9oa4hRjaTxQ+YP20A4U3SJ 2sO8hNVqadpQbUW5PwXDYBuVJJEXzuTSh8gMpPWXtbbxq0NUM9vca/6KKydQkxVhYaZOq6 5ExVYHKDgLddlMjFrIgXBOiBteGXEcx3/6OR303yaLxtnpqQvbdluFmp/lbAVA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1624436348; 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=A9+mXy6PlzhYxwKHjP6l72LS8Lbp638w1IPEBMM20S0=; b=w4nUKjm0idVsDEhnqltxudseoTt7+KJnp/VXajOmzk/LuIkgZ4Aqa8XSAhRfMd3SrbmOo3 +gBZkYJOXflMIIDw== 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: locking/core] lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING Cc: "Peter Zijlstra (Intel)" , Joerg Roedel , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210617190313.322096283@infradead.org> References: <20210617190313.322096283@infradead.org> MIME-Version: 1.0 Message-ID: <162443634810.395.1660357312688822086.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: c0c2c0dad6a06e0c05e9a52d65f932bd54364c97 Gitweb: https://git.kernel.org/tip/c0c2c0dad6a06e0c05e9a52d65f932bd54364c97 Author: Peter Zijlstra AuthorDate: Thu, 17 Jun 2021 20:57:19 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 22 Jun 2021 16:42:08 +02:00 lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING When PROVE_RAW_LOCK_NESTING=y many of the selftests FAILED because HARDIRQ context is out-of-bounds for spinlocks. Instead make the default hardware context the threaded hardirq context, which preserves the old locking rules. The wait-type specific locking selftests will have a non-threaded HARDIRQ variant. Fixes: de8f5e4f2dc1 ("lockdep: Introduce wait-type checks") Signed-off-by: Peter Zijlstra (Intel) Tested-by: Joerg Roedel Link: https://lore.kernel.org/r/20210617190313.322096283@infradead.org --- lib/locking-selftest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/locking-selftest.c b/lib/locking-selftest.c index 5c50b09..af12e84 100644 --- a/lib/locking-selftest.c +++ b/lib/locking-selftest.c @@ -195,6 +195,7 @@ static void init_shared_classes(void) #define HARDIRQ_ENTER() \ local_irq_disable(); \ __irq_enter(); \ + lockdep_hardirq_threaded(); \ WARN_ON(!in_irq()); #define HARDIRQ_EXIT() \