Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5071286imw; Tue, 19 Jul 2022 20:30:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tx8q+5cBTyCQAlTsvYW8y0FjRiIrgRWAZm1iA49DskZty1gDscFmk/DTmdyo/IwKT4SXew X-Received: by 2002:a17:907:94ca:b0:72b:8f3e:3be0 with SMTP id dn10-20020a17090794ca00b0072b8f3e3be0mr33608305ejc.462.1658287830891; Tue, 19 Jul 2022 20:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658287830; cv=none; d=google.com; s=arc-20160816; b=od8rF5M+HwkwaV4lypHQ4QXP9iuSU1mPIj/VhVGdFEeZVzj9/6eGzdWkUr+175j4xG RTqLrOiRJ8FneWlXIpCbkA1UB7q3gbhJoHzqJhP0PWHv3M3xTmi//OlJuzpDTM4rOklK g0fBH4dVx2yMdCDM+8dOf1JaboCDyIfM4nORGjix2I4chiEZD62Dk/2qN+5VxjikmmjM q7hMF19f2JuQRmKuWjx7MJpOC1bMVXu6kYAxtoyJwi6JB8OWuIU1TXI40FfeLQVsYuS3 +nSa1InMTR0u7R1Ib5bV3FBbhoza4GE3OAAf7mRoxwWGg9TMo4D1oOeVCRjqyjpIH+6W wNCg== 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=GeLms78lLUT8hpFTWlbc91pEODSOhUovsnQLyJDAT+0=; b=jlvj+pJALqe/Vp7KGL3QY/JoCAvCmTYJjkBsknZZzB6nnZXKrgNmOZRwOVGD9i/JY0 IfPoyBZi+x66RrE2dayxifZonqBf5mtMj99+9v8V8UEDr3xAWwQfvxEmIzKP37RlD9KR lOfHmNBsBRWmPS89LZzRDmZ9EZOiFK0p0tx6thmQivrN5BtjtpvCCuZ84iVxshhDuKqx Or+dMOMfYdn+KT3BNJbgwOKE+DqIFOzhBATqSoHKHtLwfxfznX57a1c3hA+2qw260KU4 jWUuo0JgxDxDJ8cormnvZf+kmF8zn4g9VTVLoZFIatrg1vUCKbbG9iJZprl6pOCustjb d70A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=F2xrDxHq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs7-20020a1709072d0700b0072b95dee668si28734256ejc.489.2022.07.19.20.30.06; Tue, 19 Jul 2022 20:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=F2xrDxHq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232316AbiGTC1X (ORCPT + 99 others); Tue, 19 Jul 2022 22:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240293AbiGTC1E (ORCPT ); Tue, 19 Jul 2022 22:27:04 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A278478DF7; Tue, 19 Jul 2022 19:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GeLms78lLUT8hpFTWlbc91pEODSOhUovsnQLyJDAT+0=; b=F2xrDxHqnWOzlhaQsrchtLzigm 4pfpJpmoJz7FRxEjWxr9ralmUjPdbeeaX5GZS8Xgemz2OK9yU0hUPxDrkAcYKwHZabd74PrDfevQ7 BMVS+fSm8SHkEh1vJyy9seEqXOtIpBxCc4u26JZYIdUvueyzRrCcl9VUPr7PQa2wCHkr2d79m6svY WKWmt/ZuOdkVE9qTH6o/rI362gld0K+FY+0DoaO+coX5FcbdwsolpGHefsUV/HrzYFVsJX/xIQs9U PBsxnnyAsaZY1MXG/C8TN6c04jllBWrUDML1VFBR+cTPHM6uvd9uZuXe1Xonm2pb4DXqsR2Zmws30 lQJDLzjg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oDzM6-00Dx69-6w; Wed, 20 Jul 2022 02:22:30 +0000 Date: Wed, 20 Jul 2022 03:22:30 +0100 From: Al Viro To: Helge Deller Cc: Hillf Danton , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: Re: WARNING: CPU: 1 PID: 14735 at fs/dcache.c:365 dentry_free+0x100/0x128 Message-ID: References: <20220709090756.2384-1-hdanton@sina.com> <20220715133300.1297-1-hdanton@sina.com> <20220717113634.1552-1-hdanton@sina.com> <0aa365ca-a9f0-8d15-b515-adb8823f5d28@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0aa365ca-a9f0-8d15-b515-adb8823f5d28@gmx.de> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 19, 2022 at 06:32:04PM +0200, Helge Deller wrote: > > --- a/fs/dcache.c > > +++ b/fs/dcache.c > > @@ -605,8 +605,12 @@ static void __dentry_kill(struct dentry > > spin_unlock(&parent->d_lock); > > if (dentry->d_inode) > > dentry_unlink_inode(dentry); > > - else > > + else { > > + if (unlikely(d_in_lookup(dentry))) { > > + __d_lookup_done(dentry); > > + } > > spin_unlock(&dentry->d_lock); > > + } Ugh... If that triggers, we really have a problem. I don't see any way for that to happen (well, short of generally fucked refcounting - stray dput() on wrong address and all bets are off)