Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3744127ybt; Tue, 23 Jun 2020 09:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx19JKysCwTluM+TKnl8+/C70jXoBoYRUr6Zw1F6wtuGCkBL9AmlUiu5yIaBI4+MaReXhg7 X-Received: by 2002:a50:e08c:: with SMTP id f12mr22662645edl.233.1592930356562; Tue, 23 Jun 2020 09:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592930356; cv=none; d=google.com; s=arc-20160816; b=YNjEwEwxUNiEaTxw5wOBAazRUTC31fXI/MtcKWe9pX90TuFAJy8K++iDk78Bb/i4Ki NawrUJNrLEfUBr2H0zH4wUl9IwY62urS3f7Dn3CdnlRvtJ4DY8IpKpEZqRXnNNsf7rTq ocYwNIgUQY/SyxNqRnXd2w3h2LGVMPf+JCURb4W6FwdWla3gX0ugXU3sSNdWr44zhE5d q+UWOGn0j98jAhKZTonO28wyKPKWAbt9e/u9suSv+UA6FuN+dDRzoXPY68/SCUZDYGRO GeZMk7oNZfrZMD0E9cchRBnHOhlgPlgB03oektPhAxQOJVyebvCOjy0RPd1RCPE03H3w b4qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RzoHJHCZ7hm1ROHNKEIr2G/Z119807J1u519SSBhfx0=; b=f6l3CHH0AHPWe6mqb3hTjPP/gnI1OJDAHa8j3QA/T2wv4GGiEnEbN2RMJk8z/ZU+IB ldU/EC+lq/BZSyRq1nvZUbsmWhl5tj8JK1k/38jYQ69TfUmIKUZ+bn3Xr5s6U0PkpOOg 9RwkUHSoYUX/cseq22FhYVIo2ViedV+WxNVT1ykG2fKamxRbDTMbHWO88tA1wp7rVlXZ VvWTfVTX+j6aOccpo3A53yWf6NjUnJlsyicm9L1Qo2GGZBquJ46WmSUuUkaFRLY5rjfJ 5/mjjLu3UQmfkMNpApZQxG7q/aSk0Km2b0Y1LQE1SYV3i/ZPepNhgkspCTj20JDK6qke UAzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YgiRjbS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg6si14720ejb.739.2020.06.23.09.38.52; Tue, 23 Jun 2020 09:39:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=YgiRjbS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732406AbgFWQin (ORCPT + 99 others); Tue, 23 Jun 2020 12:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732174AbgFWQin (ORCPT ); Tue, 23 Jun 2020 12:38:43 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B47FC061573; Tue, 23 Jun 2020 09:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RzoHJHCZ7hm1ROHNKEIr2G/Z119807J1u519SSBhfx0=; b=YgiRjbS+IO71QOmY2cByo1vbGd Gr24I10sI0aOw80E4fgkhtZ/AKg3XhTw57Qw6cjSh/E0wUOY1uFLr5SvBxinBVMLvOYhvKKOIIOfS Ub2c1tYdQ/ZKB4e6yg6v3VKsF8VH6KvVMGJ6zlf5OFXjokqIYTpFZ4qOqMCAKFQbNhnfvbHyni2a+ JPUMJ3W7qwtOc6iPpxmGRsIV7IeJ/WaFssNyCVTi/Zq3eC9ALn7KCDMlnIBgfSu2sLmSMiuBTZiyp ZYlO+YF76UT2iHB4NtD8Ja0m0I+D7XNLD2TfRoqDaV66RGO6WCaPNE0OI96yvwqw/YM4+1ZjVmLv+ yI8aQuBg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnlvS-0002Zv-1A; Tue, 23 Jun 2020 16:37:34 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C847F300F28; Tue, 23 Jun 2020 18:37:30 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B66FF234EBA5B; Tue, 23 Jun 2020 18:37:30 +0200 (CEST) Date: Tue, 23 Jun 2020 18:37:30 +0200 From: Peter Zijlstra To: "Ahmed S. Darwish" Cc: mingo@kernel.org, will@kernel.org, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, bigeasy@linutronix.de, davem@davemloft.net, sparclinux@vger.kernel.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, heiko.carstens@de.ibm.com, linux-s390@vger.kernel.org, linux@armlinux.org.uk, elver@google.com Subject: Re: [PATCH v4 7/8] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables Message-ID: <20200623163730.GA4800@hirez.programming.kicks-ass.net> References: <20200623083645.277342609@infradead.org> <20200623083721.512673481@infradead.org> <20200623150031.GA2986783@debian-buster-darwi.lab.linutronix.de> <20200623152450.GM4817@hirez.programming.kicks-ass.net> <20200623161320.GA2996373@debian-buster-darwi.lab.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623161320.GA2996373@debian-buster-darwi.lab.linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 06:13:21PM +0200, Ahmed S. Darwish wrote: > Well, freshly merged code is using it. For example, KCSAN: > > => f1bc96210c6a ("kcsan: Make KCSAN compatible with lockdep") > => kernel/kcsan/report.c: > > void kcsan_report(...) > { > ... > /* > * With TRACE_IRQFLAGS, lockdep's IRQ trace state becomes corrupted if > * we do not turn off lockdep here; this could happen due to recursion > * into lockdep via KCSAN if we detect a race in utilities used by > * lockdep. > */ > lockdep_off(); > ... > } Marco, do you remember what exactly happened there? Because I'm about to wreck that. That is, I'm going to make TRACE_IRQFLAGS ignore lockdep_off().