Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp170184pxx; Mon, 26 Oct 2020 06:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4enXX+AM8BKTuCAYbHzBMHQb3yrXS1DBYIpIYAdk3ExfMW/f8ITJ3G9ekH/bh/2jkEUoO X-Received: by 2002:a05:6402:6d8:: with SMTP id n24mr15731836edy.168.1603717598072; Mon, 26 Oct 2020 06:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603717598; cv=none; d=google.com; s=arc-20160816; b=b4AI0K8QP7YIvE5HNSyyo1kc1X5wOb4HOY1LiglWM9gCodTvnOvm/IczuCAOfyilZP dmjnG76Rmh1d4XTrW4D3vu/bJ64JhGg+KLl4xfFQ2+mIR7oUp66DSKIak3Ry93Gumcin SFe/x7mUTaieOKShKNzWlKaenTCx6q1XEjlxRjSWJygm+4PPW60Fx8tUEizOdS+WIE4k KJ0SBP4XYERQ2vnYAVKcsSp1B81Q2trn7+4kU3Au2wv+380TYOEMCOz3lOFPuY6NnQnf 1Mv3lzA0z3rwsRmWr0+tUOxK2Yye3itR+HTzfbAPh6dKvqGDNhwQsCWWOj7XCZIzSIFy Q/OA== 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=k3myULEFtog5AWC/ZKa5hJLaQTgjEDatFr9wR9ogfpo=; b=qDO46unUGa8IUduWU+09NFGpK+1ygwEh4nMQ00Ne1ksOQZKIAjIk4De8fGp+/9nsb+ YkThL/0U/aabEUtYG96DwS+7BHs4cSYism0EzRelJ6xI8zeua6ox0JlpOhCJfUNaHlAO EoPhAIXXRZ1Rq+PIhzgUmK4h+fQ2StvL7kUJEIisrdNo1x8PoqyoWv1pY+bVyqDTZrcA 0xfL+t/brsV6ni3tfxAegyEKHqi0KcrggXDUI+xnbhPhiqLeQP3qH0ne2s6X1EA152Ow goAQoj7y8qjOZlZM9S+330aBnd+QWMmCUo1mXYKf3E6xsb+dqPWYJtoXABqf2rhJzX5a J9iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=NuU1N7sN; 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 e5si6734329eds.367.2020.10.26.06.06.13; Mon, 26 Oct 2020 06:06:38 -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=merlin.20170209 header.b=NuU1N7sN; 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 S1773922AbgJZLkW (ORCPT + 99 others); Mon, 26 Oct 2020 07:40:22 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41156 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1773910AbgJZLkV (ORCPT ); Mon, 26 Oct 2020 07:40:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=k3myULEFtog5AWC/ZKa5hJLaQTgjEDatFr9wR9ogfpo=; b=NuU1N7sN8NattmmlDC8V+bEd+l zfhZdRaZvHfaBPsfUKrp9qaC6tt+N3brens4A/LsYDP4Z0om3Kbwc7dxeqMVN2AlPpfMM2rwrlTkS LNf768HPO4jP2dDNcWvlCTAmMmxtdKkWBcppfP1fqQ4eCjlkJazAxZiAyKz8fndNkCCHqvD0yy0lX Xc5waFkHH7ky9Ss13la9z7EQ1ON52GBv1QyqWx5sOCQh3E1ifK9u5/HguoELPwpzQdBLLi/DXGXbj MJrF7j84cYhUyINJcsVB4/niMRlJiA4tuiD+rzvzNIwsPaCfzrISQFJtkKzTb22VmCNYwhqZF2+0G XR72hLow==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kX0rF-0005tu-7c; Mon, 26 Oct 2020 11:40:13 +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 BE09F302526; Mon, 26 Oct 2020 12:40:09 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AA5342B411E57; Mon, 26 Oct 2020 12:40:09 +0100 (CET) Date: Mon, 26 Oct 2020 12:40:09 +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: <20201026114009.GN2594@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 11:26:49AM +0000, Filipe Manana wrote: > Hello, > > I've recently started to hit a warning followed by tasks hanging after > attempts to freeze a filesystem. A git bisection pointed to the > following commit: > > commit 4d004099a668c41522242aa146a38cc4eb59cb1e > Author: Peter Zijlstra > Date: Fri Oct 2 11:04:21 2020 +0200 > > lockdep: Fix lockdep recursion > > This happens very reliably when running all xfstests with lockdep > enabled, and the tested filesystem is btrfs (haven't tried other > filesystems, but it shouldn't matter). The warning and task hangs always > happen at either test generic/068 or test generic/390, and (oddly) > always have to run all tests for it to trigger, running those tests > individually on an infinite loop doesn't seem to trigger it (at least > for a couple hours). > > The warning triggered is at fs/super.c:__sb_start_write() which always > results later in several tasks hanging on a percpu rw_sem: > > https://pastebin.com/qnLvf94E > > What happens is percpu_rwsem_is_held() is apparently returning a false > positive, 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?