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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDF11C35247 for ; Thu, 6 Feb 2020 23:44:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A74DC21775 for ; Thu, 6 Feb 2020 23:44:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m0BHB8BW" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbgBFXoR (ORCPT ); Thu, 6 Feb 2020 18:44:17 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36456 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbgBFXoR (ORCPT ); Thu, 6 Feb 2020 18:44:17 -0500 Received: by mail-wr1-f65.google.com with SMTP id z3so528232wru.3 for ; Thu, 06 Feb 2020 15:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d02kj/Sz33fa+befgXZVyFREBr0vJnFUZeMKa31YhvU=; b=m0BHB8BWirguKwZ62oJ9sCeWiNk4ZMjTSxggAILO04O6yhuLcNQpLniOi4JGJ4UJYv XAGdqJxP3BJbWUPQmnoBeHwmH/sbn/bXHj+8NFbDkzfZRgt30L3uLME77sKc3GjEa+kv PBU6gqQXEc+1vBY3kv10MJlk1JrcWKE4Q/VsPMzLoBWjE4ozmf8jcNsqn/wVC9PNFn38 qpvoKl653a+mB4e1T32mXBtUCX+LtENNUatP9IEME69ISo/LqbTSq2ESV2x7/GhXZQhv HmI3jO7GhCTaR9DNfUNSQt/0WU4tPpx3NasR1R4x1vdLbIeQO3gFDKnu3jAUyy1uB87E HwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d02kj/Sz33fa+befgXZVyFREBr0vJnFUZeMKa31YhvU=; b=i+AqVYB41dKxrZgdzh64gXic2k3xiGbnx50CKI2qq/2E8cD8ka1h+3ZnHPno/6y2pr QRNk7R+Bpw9YzpLpvA/JJ2Ms+zklCkW1pt7uTo7m7vZ1SXyZYkTzCq1g1Ia1EKyS0k4g QE7CW15jn5YbipVR+6Y5ccSC+A9+518pUDpYQHliukHeOuuZmfzlyECxj9RGviFxmdP3 tlv8rydarvkwMratorwkjeNl480oF/E4SpeRRKoZqczB0Qg+zjl1S6Luho+85LS1Xq7Y bf6FV8L9oRR+xBux3fwfzmqMQWX+rwfOD2RBx/XavcoNNeuYxu+UKpyj/iHEnqkB2zGs HxvQ== X-Gm-Message-State: APjAAAXpvcAziwTK302ZE9VYVfCDJqVUh9hcZ252H+l92lo7AedVBS7U CJPJp2bn9NqC+M7gCK9jjLTTqQO6/e6lnD35afnt1A== X-Google-Smtp-Source: APXvYqxpArkCAj89URKq3zHxyBge3u7GNKCttPWI1urPSnesFArTXUqzR/IIYDcODxWqpNQ9cYV4fjYwH+o67pLFahQ= X-Received: by 2002:adf:8564:: with SMTP id 91mr518010wrh.252.1581032655972; Thu, 06 Feb 2020 15:44:15 -0800 (PST) MIME-Version: 1.0 References: <20200206140352.6300-1-ardb@kernel.org> <20200206140352.6300-3-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Thu, 6 Feb 2020 23:44:04 +0000 Message-ID: Subject: Re: [PATCH 2/2] efi/libstub: take noinitrd cmdline argument into account for devpath initrd To: Heinrich Schuchardt Cc: Ard Biesheuvel , linux-efi , linux-arm-kernel , Laszlo Ersek , Leif Lindholm , Peter Jones , Matthew Garrett , Alexander Graf , Ilias Apalodimas , Daniel Kiper Content-Type: text/plain; charset="UTF-8" Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Thu, 6 Feb 2020 at 18:33, Heinrich Schuchardt wrote: > > On 2/6/20 3:03 PM, Ard Biesheuvel wrote: > > One of the advantages of using what basically amounts to a callback > > interface into the bootloader for loading the initrd is that it provides > > a natural place for the bootloader or firmware to measure the initrd > > contents while they are being passed to the kernel. > > > > Unfortunately, this is not a guarantee that the initrd will in fact be > > loaded and its /init invoked by the kernel, since the command line may > > contain the 'noinitrd' option, in which case the initrd is ignored, but > > this will not be reflected in the PCR that covers the initrd measurement. > > Does PCR here refer to the TPM Platform Configuration Register? > Yes. 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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E79ADC352A5 for ; Thu, 6 Feb 2020 23:44:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE25920730 for ; Thu, 6 Feb 2020 23:44:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tz9tU27D"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m0BHB8BW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BE25920730 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pVyXqkcL/iJAhCda7q3V8ZWjDSG00jMxmvRxDgaYJHU=; b=tz9tU27DNOWKxF CsWXeH+mqCTKinmOMsE62FBwh4MHL3GAQZtxIvIeV/a1WzRSSYthKhwafFj+HYtecAdseON6HFEBg h3I/U1yIzlku66SYv4ahjRfhRwFluoDmcyn3QzmDLOLkeUw82f0tQbrGd7wx0B/sLXcwfXsiNCSVl manjYeMtRoNNloRTepKwWHtWDiGRTKbRVE1ASB492WwLbznZQxoNds0hX4CxNspC9W+rZ96sFChcJ GqO0g8Ej2RXKWxmA9PMHUFAo/71722Z0ElGSpQ9gFzmy7BkR3RW5pm3bsAxq4JzurxlT4OeAmbVyO MA1v3krvVd3dh1TYr3Ag==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1izqon-0007W3-AO; Thu, 06 Feb 2020 23:44:21 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1izqoj-0007VV-KA for linux-arm-kernel@lists.infradead.org; Thu, 06 Feb 2020 23:44:19 +0000 Received: by mail-wr1-x441.google.com with SMTP id w12so538492wrt.2 for ; Thu, 06 Feb 2020 15:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d02kj/Sz33fa+befgXZVyFREBr0vJnFUZeMKa31YhvU=; b=m0BHB8BWirguKwZ62oJ9sCeWiNk4ZMjTSxggAILO04O6yhuLcNQpLniOi4JGJ4UJYv XAGdqJxP3BJbWUPQmnoBeHwmH/sbn/bXHj+8NFbDkzfZRgt30L3uLME77sKc3GjEa+kv PBU6gqQXEc+1vBY3kv10MJlk1JrcWKE4Q/VsPMzLoBWjE4ozmf8jcNsqn/wVC9PNFn38 qpvoKl653a+mB4e1T32mXBtUCX+LtENNUatP9IEME69ISo/LqbTSq2ESV2x7/GhXZQhv HmI3jO7GhCTaR9DNfUNSQt/0WU4tPpx3NasR1R4x1vdLbIeQO3gFDKnu3jAUyy1uB87E HwQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=d02kj/Sz33fa+befgXZVyFREBr0vJnFUZeMKa31YhvU=; b=JlMNmPVF4xqMV0+Opz4oWCDxJVuhmi5/IRM/uKeBIgwZ29+ZWJPiScM8aH3ctGtZoP 9fcAqeNYnQxtrWycmcn7U5IB2St0+eLE6SGbmDPskh9nGoJquUJdOoXn1JuzhIN1TrPO AyovVjfv3uTOFFANa4FartIXa8j8t5si2HZUpRc+vz6ZM1Qg4UHuMF3/8bmijOejFDS/ oD3vdpQ6gz9zFVqC7R2QH0oThSDEeF0hBkC2u/YgOa9110zoc2tylMwVEV5YhZTB8fUh 1GGXW8Y7U5FAe6A9paSxTB249h/x/w29U0Y/ho+2Y26iaJRv+28Ku7GLrK5rCmJIDC5P gPyA== X-Gm-Message-State: APjAAAW7A/o85E78MRbR+Od9Qs1D3Ja8pyWzXsJI7gqtK3z1k+gwDWiY dENNEVsG0o9PhifemcmyOppyWcOLP60Zy6kFY394lg== X-Google-Smtp-Source: APXvYqxpArkCAj89URKq3zHxyBge3u7GNKCttPWI1urPSnesFArTXUqzR/IIYDcODxWqpNQ9cYV4fjYwH+o67pLFahQ= X-Received: by 2002:adf:8564:: with SMTP id 91mr518010wrh.252.1581032655972; Thu, 06 Feb 2020 15:44:15 -0800 (PST) MIME-Version: 1.0 References: <20200206140352.6300-1-ardb@kernel.org> <20200206140352.6300-3-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Thu, 6 Feb 2020 23:44:04 +0000 Message-ID: Subject: Re: [PATCH 2/2] efi/libstub: take noinitrd cmdline argument into account for devpath initrd To: Heinrich Schuchardt X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200206_154417_727273_3C851447 X-CRM114-Status: GOOD ( 12.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-efi , Alexander Graf , Daniel Kiper , Ilias Apalodimas , Matthew Garrett , Peter Jones , Leif Lindholm , Laszlo Ersek , Ard Biesheuvel , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 6 Feb 2020 at 18:33, Heinrich Schuchardt wrote: > > On 2/6/20 3:03 PM, Ard Biesheuvel wrote: > > One of the advantages of using what basically amounts to a callback > > interface into the bootloader for loading the initrd is that it provides > > a natural place for the bootloader or firmware to measure the initrd > > contents while they are being passed to the kernel. > > > > Unfortunately, this is not a guarantee that the initrd will in fact be > > loaded and its /init invoked by the kernel, since the command line may > > contain the 'noinitrd' option, in which case the initrd is ignored, but > > this will not be reflected in the PCR that covers the initrd measurement. > > Does PCR here refer to the TPM Platform Configuration Register? > Yes. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel