Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4525976rwb; Mon, 31 Jul 2023 08:09:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHo9pBfuuNcYNlDuKkhtw3WZa9eIFHDTiD7ADpM5Shwc/WJSphzTtW4400j1z6U82lJo7O/ X-Received: by 2002:a17:902:aa46:b0:1b8:9002:c9ee with SMTP id c6-20020a170902aa4600b001b89002c9eemr9106979plr.1.1690816168634; Mon, 31 Jul 2023 08:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690816168; cv=none; d=google.com; s=arc-20160816; b=D+qm9vmw8uGRT6wNuOmBwYCQr7bqaELOhbGk4+T6cc3tVENcdDACblICWa5d5C2B92 gzkR9GpL2KYrCyvV8evJpTc71jiGWhkmQ507PRqmsXt5aLvkDQSvJkRGtHoS7WynW3Au us2qi12h15aG+oiw0kApf+XpLmOyU9WsVN4k9hyzpTKh4/xrn4T5DWJX6zxf94wU8Xhw YdLF+K/B2vJcra7z+HqpigV6xewSMvUYRzJxQxR4/Ety39AKIBJJn+uc1AEIOVyV/7Bv Uf36m6GKdywVN3OtFkyxCeWuVii8zyjofXkwYgsaqAazt9dEjG+b3FZZS8kZXM7NlFrn 2uUw== 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=qIcsmcO1X5d+GhZ5Mpq3LdgZI3/k4QgTfoSefkwKc0I=; fh=7b5lLSS+c/eZh9EgOkNw1aCutJVs19tiooeVDhy/Wb8=; b=njTr8Jgd2lpTy+YnFcHqjgUaC9p7GUUE+lQjbyfJE9YiikxlXSO2QziUErKMC6JWPm L39NbG0aSPfSqkffjIuvmljbVJI+VD0FcCGsDDUmPq1k4pWkuw9j6GgxWWp6hThmsomO aqU8ga7cUo+FsDXtI9ZogKObp5x0jzy59b+j9gGg+cwSGPwqAP3kKPHzV01hwifqs+od 9AoDs1B+HLFksxSL7OSz3f0njpD9C2O1bFxdxU1RBEVHy9UkMxzDTz6VwvXQsnPEzRNp CVtn7eYzJtB0kRQpAc6UhI0gwiC38JGTo67bEtrdVcp+YftjMIQVJF4cXom8befqGJKs U51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GfpV3AHB; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a170902d1c400b001b9d2010c39si7230613plb.192.2023.07.31.08.09.07; Mon, 31 Jul 2023 08:09:28 -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=@kernel.org header.s=k20201202 header.b=GfpV3AHB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231901AbjGaODx (ORCPT + 99 others); Mon, 31 Jul 2023 10:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233583AbjGaODf (ORCPT ); Mon, 31 Jul 2023 10:03:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5F24C0A; Mon, 31 Jul 2023 06:58:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B7FE6113E; Mon, 31 Jul 2023 13:57:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B21BBC433C8; Mon, 31 Jul 2023 13:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690811876; bh=75UoLt2odqW/ibvFDWeID4RRBL3oJ0UWvU1rniIL4WM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GfpV3AHBwj3d+4lAwHWFmFZHE7nx7W75+3JKO9zZ6etU3ciYUnH6G6h4l/IfDlP2n OHOz4Et2ua3NAcqrM9oKAUdf44nuTwUNjwNYfBga+Wuvx2N368MKCWmhRsLpnd8df9 j+OpiCKdwowcaiUHzPBeYbT77aFn3J5BD8qwTAyvoXKGwRXEnOp8BPK5DJR7SSkUrt kK9gY2tlPYwM1Qog5Sh2yPO9bdCNqgPPelJDUOBKi+CbQay48O9GSVHFz7jJ+H23QC Xre+/rMjaiFq873h/G6M5diNcjdO2qwTo5kyFI4T9/1FZTzMVhJsxbp/ezg+zRIIc3 v5ANPBfib1qYw== Date: Mon, 31 Jul 2023 15:57:50 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Gao Xiang , syzbot , chao@kernel.org, huyue2@coolpad.com, jack@suse.cz, jefflexu@linux.alibaba.com, linkinjeon@kernel.org, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, sj1557.seo@samsung.com, syzkaller-bugs@googlegroups.com, xiang@kernel.org Subject: Re: [syzbot] [erofs?] [fat?] WARNING in erofs_kill_sb Message-ID: <20230731-deswegen-chatten-4ff6c45563ad@brauner> References: <000000000000f43cab0601c3c902@google.com> <20230731093744.GA1788@lst.de> <9b57e5f7-62b6-fd65-4dac-a71c9dc08abc@linux.alibaba.com> <20230731111622.GA3511@lst.de> <20230731-augapfel-penibel-196c3453f809@brauner> <20230731-unbeirrbar-kochen-761422d57ffc@brauner> <20230731135325.GB6016@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230731135325.GB6016@lst.de> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 31, 2023 at 03:53:25PM +0200, Christoph Hellwig wrote: > On Mon, Jul 31, 2023 at 03:22:28PM +0200, Christian Brauner wrote: > > Uh, no. I vasty underestimated how sensitive that change would be. Plus > > arguably ->kill_sb() really should be callable once the sb is visible. > > > > Are you looking into this or do you want me to, Christoph? > > I'm planning to look into it, but I won't get to it before tomorrow. Ok, let me go through the callsites and make sure that all callers are safe. I think we should just continue calling deactivate_locked_super() exactly the way we do right now but remove shenanigans like the one we have in erofs_kill_sb().