Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp3287382rdb; Thu, 7 Sep 2023 10:00:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHE5CIrHP9uOltUYXUG18vvKJ/h2tGdebDMgReVB+/ayNp1lhj7gNA++A78T5cXaR2Zndmn X-Received: by 2002:a05:6a00:148f:b0:68b:eb60:c0a4 with SMTP id v15-20020a056a00148f00b0068beb60c0a4mr18885703pfu.6.1694106044301; Thu, 07 Sep 2023 10:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694106044; cv=none; d=google.com; s=arc-20160816; b=XbfXYBofwZVxYTj2zwmLDdhJKG1IEJBOh1cZjpeOS3rg5QwxyDYOWUQaBR651Fiz96 /2f3/LQTF9GR3QOh/40sVE5hEa8t1Of4wXGzN+wpak7w9EH62Z/MjXdM7KvekdOpGuDW MIRTQwDrGC34Yojdh1novD/PoVCVUujvpccQB8Ba4xmbirusA8cpwTEOAYftJqlLfSel m70rCn5yeWEGtBywqggmITJailDH68vPxHdy1DLSOb6KQwxJaxy/URoVh51yOjXT+0/s icDNPIG2LM5tddWS8GQu5+Uao7ZIXM48ILm2oNuyYADkDKtOWpE8yZ+to2qlIfRaFGh+ K4Rw== 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=XXGLoaqtgdXNkeaI0vRXQWgcWfJtEWS9NJZtvA2WhaI=; fh=oSpvvwi5bO5HyhmKO/esHtgWSbbFizmgus9DBcfylEs=; b=tJ5Nd8I3y9mvzXc2+NPbmdLwpRHTWqQHV9zaEM3EqkbCyvTZsyH54VaW+tsGE2EMlO dPKB5oG+JNscGGWs2x+FNQveeyGdL60F4wpZ2QcqgUxV1BRcVIjJ4VI355ztYEs8zACu pLszL4gvBIEKXc4+uIxuaZ+ah5aBebOuXZNi37E+KF5xjatH3v9BmdJMcbJ+b4dfrI99 40x3fQSDxaLG9nFrFliwgoQhbP0SAiG0FgwGBNXIGaB8YMvjw/k0c7SPaNF2bhwg07xt BiByoWPdBzFvbzfMOQuxLB+hpUv+vtTysfpwa6IpvXmgwhI1Dj48Hmsjo9v00q5T6QOm L+tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nUgap7cW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj39-20020a056a003a2700b0068a3ba3e481si13939323pfb.11.2023.09.07.10.00.27; Thu, 07 Sep 2023 10:00:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=nUgap7cW; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241540AbjIGQYN (ORCPT + 99 others); Thu, 7 Sep 2023 12:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244264AbjIGQX1 (ORCPT ); Thu, 7 Sep 2023 12:23:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91F777EF3; Thu, 7 Sep 2023 09:13:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B04F5C433C9; Thu, 7 Sep 2023 15:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694101800; bh=ogud9LayuNxA5epVuVZz59vt/VQoyZTG7PTl81uTp8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nUgap7cWFuKCa4PzjEmfD7qA5bEg4ToR1RgTOSE+0anALQLA8rb0aoaa3HkXVFJ5O LDB+OVa6mYfYspsYNajmp2hazKUJujr7/ujwdKBxCQO9xzQjcUhed3cKKf7or7kVJQ zEaJHLUzIkrN4dVjplI5gvrGQy1JSFgJ289/eNpe3MI2GuE1ujn2jmG5HE5qt8gYVM Lo423kUOLaO7NzTBlkgos06S3xuR9Rqn3KUzcBxuyDYaiA4kZFUISaBw5VbRdqqBmw jFSohpUZokXHmNQaJ+RZ126vvjlbM85JLeatZeu1dTGenf0kuzVxOXIAPHhw4MpVME uHd7r0J3NIWsw== Date: Thu, 7 Sep 2023 17:49:54 +0200 From: Christian Brauner To: Guenter Roeck Cc: Christoph Hellwig , Al Viro , Namjae Jeon , Sungjong Seo , Theodore Ts'o , Andreas Dilger , Konstantin Komarov , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, ntfs3@lists.linux.dev, linux-xfs@vger.kernel.org Subject: Re: [PATCH 13/13] ntfs3: free the sbi in ->kill_sb Message-ID: <20230907-liebgeworden-leidwesen-331fc399f71e@brauner> References: <20230809220545.1308228-1-hch@lst.de> <20230809220545.1308228-14-hch@lst.de> <56f72849-178a-4cb7-b2e1-b7fc6695a6ef@roeck-us.net> <20230907-lektion-organismus-f223e15828d9@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-ext4@vger.kernel.org On Thu, Sep 07, 2023 at 08:23:09AM -0700, Guenter Roeck wrote: > On 9/7/23 06:54, Christian Brauner wrote: > > On Thu, Sep 07, 2023 at 06:05:40AM -0700, Guenter Roeck wrote: > > > On Wed, Aug 09, 2023 at 03:05:45PM -0700, Christoph Hellwig wrote: > > > > As a rule of thumb everything allocated to the fs_context and moved into > > > > the super_block should be freed by ->kill_sb so that the teardown > > > > handling doesn't need to be duplicated between the fill_super error > > > > path and put_super. Implement an ntfs3-specific kill_sb method to do > > > > that. > > > > > > > > Signed-off-by: Christoph Hellwig > > > > Reviewed-by: Christian Brauner > > > > > > This patch results in: > > > > The appended patch should fix this. Are you able to test it? > > I will as well. > > Yes, this patch restores the previous behavior (no more backtrace or crash). Great, I'll get this fixed in upstream. > > Tested-by: Guenter Roeck > > I say "restore previous behavior" because my simple "recursive copy; partially > remove copied files" test still fails. That problem apparently existed since > ntfs3 has been introduced (I see it as far back as v5.15). I don't think anyone finds that surprising.