Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp355701pxx; Mon, 26 Oct 2020 10:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjz9KK55cu96bVJT+h6wtc9woqLyeTCuh3jHAXRdz3Hv9nZ2nMLvC4ugeMbxylTC7ebnAm X-Received: by 2002:a17:907:43c0:: with SMTP id ok24mr16572185ejb.385.1603731802657; Mon, 26 Oct 2020 10:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603731802; cv=none; d=google.com; s=arc-20160816; b=oR7cP25+MDy+mVxrvrZ5A/6s8hyxGclmSwZd1h2HEDBlLwplV2HhDrdGNBPMtDitts ir2vE1S0mSVCmcJ50r1+FLXz+yG4+bUhq6uKPuvyiNnSipEmuMDkF5ylrfIDhfFYp2he i+ymNdC3wyBX/TpXK/sbam071jjs6yO1FqUDN7jELxa+pYt7oX2WXL1vxcHDu2fR30a0 N5ewi0Up3a5oDNQZzfDpcslz+UwThmfSxHr0B40OQEI/tep5dAuXf/mUMozqijyXDWqP qz5LVHfK++jxbTkpQrFlCUUpN62+rfSS6zRcR16rwam3/+QG28DlNVYHj5oAOJhhMfat 5y+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OVC/8ufCPdq+6mgXa8rH1fqWXxtwPmsOC8FTITP0Ogg=; b=xHJIkjv08qNyCmarqnxXiM/20l7cI19QTZm/0CHLIJuY6+Gb6RoMbvol4RBqYbclsv R7mDnC9w4eXThG/HrF427d6qc9fSRvocij+vtLvAB0Hq6tYddKxKWijvsrxPCLc5EaNu Aobw4lasGwyDx+6YRHo5JgCmkR2TCCjDTMRW+X7NuX6Eu9RAVw0cJ5MwJv+zCzRwByNJ rKlZPH4BN/JsP06uSnAYOmbBCPs87oJgncry5rfdo1gDU3+J82w1rtxMb4r/1jxpMUPD e6ND8ezMQn6rSekRyvFGbD/lkPE4/O7t8QjuHkToMY8g/NwZ3DURo/0Yb85EXiayKTJR pmsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=lmrPgvmT; 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 se13si7478109ejb.702.2020.10.26.10.02.56; Mon, 26 Oct 2020 10:03:22 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b=lmrPgvmT; 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 S1773186AbgJZMz2 (ORCPT + 99 others); Mon, 26 Oct 2020 08:55:28 -0400 Received: from casper.infradead.org ([90.155.50.34]:39218 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1772266AbgJZMz2 (ORCPT ); Mon, 26 Oct 2020 08:55:28 -0400 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=OVC/8ufCPdq+6mgXa8rH1fqWXxtwPmsOC8FTITP0Ogg=; b=lmrPgvmTrlLJY4lFSLK93bv8oi lqKNouM/F5wE7yAL6T3q9AWeeewXG7xxnCWF+NkLhH4JdAvWo4OnHK0zDNmL7LJBeXaSidLqfH1yd ivFdZbL98R9+66M4jbXnLan8kHsGdt6MYI6ZjYfUYZFc61JyKCISRich3D1H39FkaoyNa1ZA3yByJ hqIip4B0CRrzTA/CjPPN5PkcbOmTbxa4iXbNbirMqSrPHkxjfy+gk8htNtb/7hPqY2E+VEljahXND lgoMZp0KdI4mGBN8uaqV1AF7LN3LT3wVL2zpG7z/aztbMMkmK51E1sFhTXg32Q/Tv0v6W0obt6DiK Oee+t9og==; 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 1kX221-00056D-6h; Mon, 26 Oct 2020 12:55:25 +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 A40663006D0; Mon, 26 Oct 2020 13:55:24 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8BD3E2141F77F; Mon, 26 Oct 2020 13:55:24 +0100 (CET) Date: Mon, 26 Oct 2020 13:55:24 +0100 From: Peter Zijlstra To: Filipe Manana Cc: LKML , Jan Kara , David Sterba Subject: Re: possible lockdep regression introduced by 4d004099a668 ("lockdep: Fix lockdep recursion") Message-ID: <20201026125524.GP2594@hirez.programming.kicks-ass.net> References: <20201026114009.GN2594@hirez.programming.kicks-ass.net> <0c0d815c-bd5a-ff2d-1417-28a41173f2b4@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c0d815c-bd5a-ff2d-1417-28a41173f2b4@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 11:56:03AM +0000, Filipe Manana wrote: > > That smells like the same issue reported here: > > > > https://lkml.kernel.org/r/20201022111700.GZ2651@hirez.programming.kicks-ass.net > > > > Make sure you have commit: > > > > f8e48a3dca06 ("lockdep: Fix preemption WARN for spurious IRQ-enable") > > > > (in Linus' tree by now) and do you have CONFIG_DEBUG_PREEMPT enabled? > > Yes, CONFIG_DEBUG_PREEMPT is enabled. Bummer :/ > I'll try with that commit and let you know, however it's gonna take a > few hours to build a kernel and run all fstests (on that test box it > takes over 3 hours) to confirm that fixes the issue. *ouch*, 3 hours is painful. How long to make it sick with the current kernel? quicker I would hope? > Thanks for the quick reply! Anyway, I don't think that commit can actually explain the issue :/ The false positive on lockdep_assert_held() happens when the recursion count is !0, however we _should_ be having IRQs disabled when lockdep_recursion > 0, so that should never be observable. My hope was that DEBUG_PREEMPT would trigger on one of the __this_cpu_{inc,dec}(lockdep_recursion) instance, because that would then be a clear violation. And you're seeing this on x86, right? Let me puzzle moar..