Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10462804rwd; Wed, 21 Jun 2023 23:46:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5C71Qz4B/nIrjWPbPIrYfSDBSA+n21eImsT+RzlwpZzPKVx7yIGv/36O7II9GonEhsx/lz X-Received: by 2002:a05:6a20:914b:b0:117:7ad7:d9a1 with SMTP id x11-20020a056a20914b00b001177ad7d9a1mr31847391pzc.20.1687416386708; Wed, 21 Jun 2023 23:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687416386; cv=none; d=google.com; s=arc-20160816; b=ivy0NHsX0kW1jSyu4Hq13cgUQ8VXy8HDTa82toUisjHkChmzMjmFfhgvqZd0PfB2n8 Zdoa+aSs6Hik48kwgg2ly6F4MEhgq3sLOecpyq1QZosYPqQcgvtWr9FD22xVw86RvyS6 bWpFPZ45PS5V2C6BheoLrfx07prYP5kXFqjUj4Bk8wcT5TbgfYVb7xURQhUeA9ZBC8AZ Q+MXoXKfTtcCfE8WcnZpYXOHvv0rRoxJxlK0KBpqFj/vdIPeOJax2AFdvOWB0TNtzfQd u45dzh+JtVkCoa053DCMpiNWKDgiWLPlU016KOBvaUF3Z0ALukLdyC2KOlutiAyReTi4 okVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=atZj338CRUPuI6c5pVFwFK0btD8A5iSAvIkijwX5gQ4=; b=sZ/hmvE/wI39l5z9J8K5dlzUbHcSq+M25bpCrTGsNyUlgTytfX2Sa9nisS11TGeM0y 7vvpUe95R+xLQ3Ev9EDbjoWd84BolxcE7rSBLMPJVoKkin2te7kSnxDmC1erX2j9KtT0 9VdY6JQZASf4RM6V7qdBqUSukye86JYZP4r5zx5F+M99x2k9fNgE0DV/QylgNiQ4Oxme BRzUZP1gxjNyi1fu3S0jHFqjrGjeOk78IXrnpRZBCbvx6ELRzB02J4miYaHDphlFBeN3 1b8Tc87bUCQP6zupTNRHSf1if9YrgK3RQLd0bcVrADmzp3nqDcOBvHvlVNo3UZOqn6Wd 0oxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a634d07000000b0054fe372aa7bsi5776688pgb.609.2023.06.21.23.46.15; Wed, 21 Jun 2023 23:46:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbjFVGAO (ORCPT + 99 others); Thu, 22 Jun 2023 02:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbjFVGAM (ORCPT ); Thu, 22 Jun 2023 02:00:12 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39909E2; Wed, 21 Jun 2023 23:00:09 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4E6A467373; Thu, 22 Jun 2023 08:00:01 +0200 (CEST) Date: Thu, 22 Jun 2023 08:00:01 +0200 From: Christoph Hellwig To: Guenter Roeck Cc: Christoph Hellwig , Jens Axboe , Greg Kroah-Hartman , "Rafael J. Wysocki" , Mike Snitzer , Joern Engel , Miquel Raynal , 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 14/24] init: clear root_wait on all invalid root= strings Message-ID: <20230622060001.GA8351@lst.de> References: <20230523074535.249802-1-hch@lst.de> <20230523074535.249802-15-hch@lst.de> <8c1992bc-110a-4dad-8643-766c14bf6fd4@roeck-us.net> <20230622035149.GA4667@lst.de> <2205ef1e-9bb6-fb1e-9ca3-367c1afe12ac@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2205ef1e-9bb6-fb1e-9ca3-367c1afe12ac@roeck-us.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Hi Guenter, can you try this patch? diff --git a/block/early-lookup.c b/block/early-lookup.c index a5be3c68ed079c..66e4514d671179 100644 --- a/block/early-lookup.c +++ b/block/early-lookup.c @@ -174,7 +174,7 @@ static int __init devt_from_devname(const char *name, dev_t *devt) while (p > s && isdigit(p[-1])) p--; if (p == s || !*p || *p == '0') - return -EINVAL; + return -ENODEV; /* try disk name without */ part = simple_strtoul(p, NULL, 10);