Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp318057pxx; Mon, 26 Oct 2020 09:14:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySEo9OGNbHv6XuE6l+r+NsclUdbVKgrVvh7dws51aWk0m/cVlSAFUKVWhSIzdPkmDe8Co5 X-Received: by 2002:a50:fb18:: with SMTP id d24mr16774341edq.43.1603728867348; Mon, 26 Oct 2020 09:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603728867; cv=none; d=google.com; s=arc-20160816; b=ph/JZQeylSEbYp3m25TYl+pu+8OfFQoA4imNBOKsB8tLWQ7yLhDOkLSbvmFOYhWVOn BibK0y9/AGf0S5xGRqAHcHq0zhTBjgnyXXZzjXb5eexJzWdDVlkMVdMsrMSMbUqh0Dv7 PY8DyWJXdCeD7b0Id0hJ2NGMB5vtVAvirjsF6wVzdwRHYGhKEjNfTHXt0qTFnWjwU4vr NgObFjLs1Z7jI/Jb6SvSGmzKmcSqJ1dxGKd+nbmNOnvl9kg3aVH01a0bWFrTpTz3fqNw z7X9MTnXAq1ir9r3mHJAglKXKiAy4K2pFQla5nNDGb1zt+pTiUUKc0WXG6g8C3dop4cP 5Tag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=JrUGiQKa+nOgpLR5+3rPTLPO7SRFbfxNLKSQsjR/B3s=; b=rAbeh9pfgoZhgLVy6PtBKUMIfwfmg85iTrTvRF9deOzigTVeQLtSd9oYQgVfz+z+SI 9uuwR0kmtBy2OdCLpcEDAc1lzZr9Ot/8jBiTl0gfnEYKlZ4tca2idwDMnGaXL6X0d6Uv xcFPyzS7LHwAcIVC1dfxr/LyrqHoMkczvJgHhgDNNI8E6NSBQgj3WalGREEiyFUNqr39 JEaDVugI5ukil37+ZhboYMyYj6sqQ8akzPsRKrM0QwhFV/JwCaVk1q/VkMF4fgFoZGMD skP0j7iYskhHBLc/4oJiaX57rx9Ig4zbYYEudO9fDdYYx28yyVe0PSsyUqcv21PRaN7K xa9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=MjxjTVAi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh15si7429551ejb.496.2020.10.26.09.14.03; Mon, 26 Oct 2020 09:14:27 -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=@suse.com header.s=susede1 header.b=MjxjTVAi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1774560AbgJZL4K (ORCPT + 99 others); Mon, 26 Oct 2020 07:56:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:37382 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1768348AbgJZL4G (ORCPT ); Mon, 26 Oct 2020 07:56:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603713364; h=from:from: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=JrUGiQKa+nOgpLR5+3rPTLPO7SRFbfxNLKSQsjR/B3s=; b=MjxjTVAiOfYhK3XVQIdkQb8lFquMPAQpngX7TK0Z9Hi2JU3hJqKttoLw4PMbqU3YMWLwfK 7K/S4qzkc6UjhuKNJ83dnujc6fHvHo9dROnoAvhE3HHn5RJ7kjdSypyQjpuCDpHqDJKcKO VcW7P2n41IrrM9LVJymJALYDnzdVrMU= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 59E6DAC8B; Mon, 26 Oct 2020 11:56:04 +0000 (UTC) Subject: Re: possible lockdep regression introduced by 4d004099a668 ("lockdep: Fix lockdep recursion") To: Peter Zijlstra Cc: LKML , Jan Kara , David Sterba References: <20201026114009.GN2594@hirez.programming.kicks-ass.net> From: Filipe Manana Message-ID: <0c0d815c-bd5a-ff2d-1417-28a41173f2b4@suse.com> Date: Mon, 26 Oct 2020 11:56:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201026114009.GN2594@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/10/20 11:40, 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? Yes, CONFIG_DEBUG_PREEMPT is enabled. 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. Thanks for the quick reply! > > > >