Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4073310rwd; Tue, 23 May 2023 02:43:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WhRPeC1hiHZI1gMVKaRjbo66H+UejHEF7wMXO9201wpePX/OE1uDOHB8hC6+jR2q/N52f X-Received: by 2002:a17:902:a3cf:b0:1ab:675:3e31 with SMTP id q15-20020a170902a3cf00b001ab06753e31mr12695638plb.37.1684835014162; Tue, 23 May 2023 02:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684835014; cv=none; d=google.com; s=arc-20160816; b=ojGTdf9wCop8Abiy1XQgTeUJ4z8GUdBEdbnHISWZ4p7XGVcYyMsXVWv2kBImHpGa/0 NFeQEKnempjaHhUXqhQhlNmgxXbENGQZY4ClGW5UiZQeV92M/JhTw2wWo2K23kLCb2rq ox+cUxLvVjU8ywVVktQfrxrdcv59EzAgMH49ev5RdC5essQ9YwwYM38efwrquIGxWhh0 2b46AIR1YTqsV+iWPgr4q6Awf5IPaLxY6tgIIzE/LOLeQ0nr6g2YRG/eOr9fbiPpo9/x RVZKw2xqe0Yy9N43iF7njVMgZMUzAN2cXCXLCT9FT0dvFM0tEkWcCerntKi8fnFvQUmW 9hvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=irbxTtFMj36QTztSinqx+K6zvjiLXjiZS7Tr5vGVeQA=; b=VCqoWbDgtwDt8XqlQ2gAMYANEAbTqKNiS92WMgAOlH5+LMgdeftzOfza7yryr9sbRa N65eqDPsr2xaDCMRn5x3jQcgFv2AAM796eF+XclCTRSKY4qajVZPxKaJHU5PiSdqvoXx 7ptBXMykxj5ZF43fssGl0hHPcJDm73l+mMyUt7krSLb4oXflAgnmuhDsPxhozU4lGR1c Q+1YSWwuRNUPp2iApAWM5CTbH9a4ymH9VS0E5jS+tArSbt5ZfsF/HCjATlxWC4o/l9rd UlsGFyKokd14GyBn2tNDxLZTr99b+mbM/fsefjcS5stAyKTDdCqHPJfMBX7/942XKiMQ J0hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=MQH74+mt; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a170902da8800b001ac68a1500esi4821566plx.648.2023.05.23.02.43.22; Tue, 23 May 2023 02:43:34 -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=@bootlin.com header.s=gm1 header.b=MQH74+mt; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236345AbjEWJe1 (ORCPT + 99 others); Tue, 23 May 2023 05:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236353AbjEWJeV (ORCPT ); Tue, 23 May 2023 05:34:21 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA851AE; Tue, 23 May 2023 02:34:10 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9C42B1C000B; Tue, 23 May 2023 09:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684834449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=irbxTtFMj36QTztSinqx+K6zvjiLXjiZS7Tr5vGVeQA=; b=MQH74+mtNlOf4mUA+OQUVAFl8W+eC7RN11ueU2RMGlh+Uwq1wcbbyomCcUxSlkAI5NyNG3 2TMaEiXyqLQolV9rwaPYpsE7eB6oq9qRgjQ7lXGv9e5Fkqy8eud0VjNM1Bd3o3RQCcqQLZ vikDp7RYUdmVy46Cv2NGjbr3pvHIDJNW4A6cX6ZD//6P8rdQyWozGOFmTEtNE+bl6sFbi5 SRNppfd8ppRl7dBbbP6XTyvLL1K1FwSlmvyDZVICHBlkJjNG+Z+ux/uEvVGchQGOIWBi3a eOuUZbU5hKu1s5WmPVeQhF9hEE29NCLi5+s57dwJShnlXv/oGEnNobOwXkW7dw== Date: Tue, 23 May 2023 11:34:02 +0200 From: Miquel Raynal To: Christoph Hellwig Cc: Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Mike Snitzer , Joern Engel , Richard Weinberger , Vignesh Raghavendra , Pavel Machek , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 23/24] mtd: block2mtd: don't call early_lookup_bdev after the system is running Message-ID: <20230523113402.32fa86ba@xps-13> In-Reply-To: <20230523074535.249802-24-hch@lst.de> References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-24-hch@lst.de> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org Hi Christoph, hch@lst.de wrote on Tue, 23 May 2023 09:45:34 +0200: > early_lookup_bdev is supposed to only be called from the early boot > code, but mdtblock_early_get_bdev is called as a general fallback when > lookup_bdev fails, which is problematic because early_lookup_bdev > bypasses all normal path based permission checking, and might cause > problems with certain container environments renaming devices. >=20 > Switch to only call early_lookup_bdev when dm is built-in and the system > state in not running yet. >=20 > Note that this strictly speaking changes the kernel ABI as the PARTUUID=3D > and PARTLABEL=3D style syntax is now not available during a running > systems. They never were intended for that, but this breaks things > we'll have to figure out a way to make them available again. But if > avoidable in any way I'd rather avoid that. Sounds reasonable to me. Richard? Reviewed-by: Miquel Raynal Thanks, Miqu=C3=A8l