Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9519723rwd; Wed, 21 Jun 2023 08:24:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4I3JBsG/p5HbsaBOQwoWJOVr/tZCFp/MGePmVxR4eGrN4grThFRFAM1Wu9bZmF6FM55mDc X-Received: by 2002:a17:90a:190f:b0:253:3eb5:3ade with SMTP id 15-20020a17090a190f00b002533eb53ademr21230370pjg.8.1687361081321; Wed, 21 Jun 2023 08:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687361081; cv=none; d=google.com; s=arc-20160816; b=kNM/BIECNVtyOHST1w5iswte3HdwwVNFf2mZJ14GMyolcIu0aJQI1WsGe+wghy3Ngy JKjujDIw51LALQ+KWZQyBeJjas0wf5GQYxprxHFwvjZDhqprLyCoj2NFpYIf90Hh/mUh 6Y+Ja7eZg+RzGM5R+zZtn0hteGQGHfrnIolAoWifj89QwmUbWDB/yXTFtBMkbPPrROvo 0aqZj4W20kLM7E1KIM4Ia2lyW7Xt6nJ2ed+/352fvFcw93zxQQgnsHAhpwxGC5/c/LEp jz46nJvK2WdlOFhV0On+rz6jVMBQ0kmbP/ZZpqObWAjkItlWDHkw9KbR02wNT2UeneY+ EZkA== 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=/W9/jheQC0PHbu/G7Ry1IA2jeRwbRtdjPyXtz1VtfZU=; b=HeiQBSe/Z11v2famc2dc7jpmI4kA0R2w6mGv6qy6graQy79Y8hhw1jG1BKsmCACutG FEQ1sGAubrmx3ROJmnn05u4bWetZAWczJV4/vfO8TMUH8n6OtT6A42ze9u54hRoPTkFm pBhaCP/ggBy4RbJcDs+g0svJHtKZud5Jb64eiCeO+QS4LLqhL0NtZcjdp1s1cOM+/f0t F7gfDAU/yTV0NhWu1nXE+tXwOx2kU+vcKQlUW9hT1wVoDSkk9Oj69uki/TWGbtEkGvT5 KDKHgip3vthO4V4PwTineyVu0rM7XlkjwHKJkR0EagKxP2VCdKexpF/Qp9bBWYg6gTvh 740Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NP43NA6W; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j135-20020a636e8d000000b005572a215a0esi2334745pgc.643.2023.06.21.08.24.23; Wed, 21 Jun 2023 08:24:41 -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=@infradead.org header.s=bombadil.20210309 header.b=NP43NA6W; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233146AbjFUO7n (ORCPT + 99 others); Wed, 21 Jun 2023 10:59:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjFUO72 (ORCPT ); Wed, 21 Jun 2023 10:59:28 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484A759E0; Wed, 21 Jun 2023 07:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/W9/jheQC0PHbu/G7Ry1IA2jeRwbRtdjPyXtz1VtfZU=; b=NP43NA6WiK1NEH+AXeeePXx1KS +TOGx6wqsJEFvgV9223aZqy6G7x/RmM9rIjKEjRl+e08eatmp4Jxwha+/YIi3CNR6CqttzGTUecu3 ypicgGx+T3FFpHwBwYSJ2ig1Ka2sxSV65Ind5fVa0RHSkLVJhjP4a1Vd9lcID9rh9UsfetK1Usd6t 26/ioXY05c20nbeUUXUfb2R+BSPK1dgDYURmmhVdUay87p41PRV9+c1Pm9Y1fHeUCCS2AMBECty6y YygaoIeauCXDaBmb5kkelLvx1L4zo1E6UQfRbokM3gFRMpsKy4bAQop+VA7c+hQ53IuwDH907qJ3o 3pJTQSxQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qBzD3-00EsAK-0Z; Wed, 21 Jun 2023 14:53:25 +0000 Date: Wed, 21 Jun 2023 07:53:25 -0700 From: Christoph Hellwig To: Jan Kara Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH 2/2] xfs: Fix crash in ext4_bdev_mark_dead() Message-ID: References: <20230621144354.10915-1-jack@suse.cz> <20230621144744.1580-2-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621144744.1580-2-jack@suse.cz> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, Jun 21, 2023 at 04:47:43PM +0200, Jan Kara wrote: > xfs_bdev_mark_dead() passes bdev->bd_holder to ext4_force_shutdown() > instead of bdev->bd_super leading to crashes. Fix it. xfs_bdev_mark_dead is only called for the log and RT devices, for which the mp is passed as holder to blkdev_get_by_path. bd_super won't be set for those devices, so this patch will introduce a crash and not fix one.