Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp308524pxx; Mon, 26 Oct 2020 09:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDl3ul46snS2Pzr7YdekIQNPxjIiFzCVzVC7RW+W6pvj1Qk08hOEXLoxd5jL97x3MtDUu6 X-Received: by 2002:aa7:d992:: with SMTP id u18mr16278208eds.284.1603728208035; Mon, 26 Oct 2020 09:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603728208; cv=none; d=google.com; s=arc-20160816; b=coCODPDf5tJo4qaxmFNz80YZiXdHEmx4IJXq9BUf6Pv0NIuJM8qkJDrq0DFijZRqd6 c2Sp/BzaCgDCAJTrEHJkSyddUrRJh//sfAk/mlk/S6xff6f/iHpTusZFW8Ua5R+ckZ/x iA6acdI2oi5a0QYbCHzxqQoN38Gfw14N7Srisd1H+mt4YbAxjm/7EFxP4k7/9zSPQRmf Qr0MwVmx1nhRodToeDbr7rYPxYrpuaYyJunnYVltLEpr0OrqdxtZTP2PjAerggmTnr/u Kf7BuuI319OnQKlUMtmdKfv6ZjJQkR1uyej+dKRq+mFb4YYKULlvX+Q4RS8Abn22dMj2 DZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m1sw+HzJ73Wouqxp5rKJcAnn53cYFh8oiAf4/+cSrNE=; b=VMBiXiT20HZBRAtdAnF2RZePafMcQfn1Gjykae+jGFIpyXC2ujodX5ttpqaliWfryP r9lW+9FcIEdycivygFYrXUfA1rvtSD2xK/JyZ9AP/ehcl6qV4UjoO2zDs02C498ib67C lxazRBraE1wjC1BAdS0VEvMylxFhntSmP2NrC6D+RwsuGFhj2nCNOixhvAKbFL3ieu8c rkCKDpTCAz3wflQtNluvScnJvhHgSRMiLsqS8bkThuRH04CjLdFZibADnovTnTQLEk+Q X3zq7ybYVbyRBT7Dvqjcq8JEonUoydmaVrhLOg1sMZgZnm/+le8nsu+iT+GWZf4srKVg 0Hlw== ARC-Authentication-Results: i=1; mx.google.com; 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 p9si7240732edy.462.2020.10.26.09.03.04; Mon, 26 Oct 2020 09:03:28 -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; 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 S1774542AbgJZLzn (ORCPT + 99 others); Mon, 26 Oct 2020 07:55:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:37104 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422402AbgJZLzn (ORCPT ); Mon, 26 Oct 2020 07:55:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F1179AC8B; Mon, 26 Oct 2020 11:55:41 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id B3F9A1E10F5; Mon, 26 Oct 2020 12:55:41 +0100 (CET) Date: Mon, 26 Oct 2020 12:55:41 +0100 From: Jan Kara To: Peter Zijlstra Cc: Filipe Manana , LKML , Jan Kara , David Sterba Subject: Re: possible lockdep regression introduced by 4d004099a668 ("lockdep: Fix lockdep recursion") Message-ID: <20201026115541.GC28769@quack2.suse.cz> References: <20201026114009.GN2594@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201026114009.GN2594@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 26-10-20 12:40:09, Peter Zijlstra wrote: > 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? Hum, I am at 5.10-rc1 now and above mentioned commit doesn't appear to be there? Also googling for the title doesn't help... Honza -- Jan Kara SUSE Labs, CR