From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30D4EEB64D8 for ; Wed, 21 Jun 2023 14:59:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233147AbjFUO7n (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-block@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.