Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp762900iob; Wed, 18 May 2022 12:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT783zbdGxdm/vk+/wa2nrb47KjR/IAF0p0+uzbf5/Min1DrTr6qQ5U4kB68SAvJAwnnHs X-Received: by 2002:a05:6a00:1acf:b0:50e:1872:c6b1 with SMTP id f15-20020a056a001acf00b0050e1872c6b1mr855600pfv.76.1652901814316; Wed, 18 May 2022 12:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652901814; cv=none; d=google.com; s=arc-20160816; b=Qr7nGP4+6rtU9uozT7cUyIMwSrfZtNdbOSHilZBNGkqRCry+X+D7k6bZSgj5Htbpes vHvjPFt0WEULe1KksHfc5eBgqCt0At0BCMbJsHfMmNM0STtjsT6RrUPzbcos77d0rABx Y7AjHc8eiTHqN7ivo+fOhwYaDzJ2ohPFL3vP1CBPDTECoGsCvk/qK9RJr3rJLDL7qaqv nxivxmTyiv+aqDMe8UtdSrQ2w0SQqLm6GUxioaJvbBtdU8emfJpqFQlMq/iM+yfEFHJw U2/fUSwulLsJTDPUk8LI2AxLAI//vTKWVYWiL1bOH5bPTMiW+F4klZgx2DBcWb2CsJgp Tqzw== 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=azN0WpbB56teBoeHRiX8ZF8theRa9wuUdenPzDm2W0A=; b=OwUkDRq5s4UoFQnwJU0MsOlqnnTT3p9i+BSMFv4WbRMMtirjEciv2ZU+XanbvbZVIZ rAbJuBA1xszmdA8WHNv5cckO3mMRoWEDBvNclZEdj3/drJnv3EYkGjLlPQ+70TPxPuVw gstTtEGzwPz8jFr48p4Ro2aj92yWOHHha7wA0OExEKhUTkr4GELEx9CTc4FZou9kawyU WD+2nVTjc+pemQ4NhW75ZeRKiy57MyOj+pmikD56l3rDQVGq+KklzWoI27TKHkMJEqjk fO+GU5ArlBeiKai+7FgDDPKduypE2+Dxi870hALLsCE12I8io7I2Rt8o5obFNK1zh+6a fqsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Rn4CYF1A; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i22-20020a63e456000000b003f5d8d20521si3499263pgk.19.2022.05.18.12.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 12:23:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Rn4CYF1A; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 55A2622BF9; Wed, 18 May 2022 12:23:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241913AbiERTXU (ORCPT + 99 others); Wed, 18 May 2022 15:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241901AbiERTXQ (ORCPT ); Wed, 18 May 2022 15:23:16 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525BE230225 for ; Wed, 18 May 2022 12:23:12 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id oe17-20020a17090b395100b001df77d29587so6569545pjb.2 for ; Wed, 18 May 2022 12:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=azN0WpbB56teBoeHRiX8ZF8theRa9wuUdenPzDm2W0A=; b=Rn4CYF1ACF2cOUsSFeF5ggKBSZkleVil0ZiQ9WxVlhUOV+db6WXvI9Zi6EGX8zOZZq 58JBNUW6nh58qGonn1ZzSL+Rw3U7Y8oYTpnAZAyS8ri/tz45+BP4VpH/V1BYQVobDRCc IB4ZRG892jsRkd1WR7/H+ZAt+ibPl6VGuvX4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=azN0WpbB56teBoeHRiX8ZF8theRa9wuUdenPzDm2W0A=; b=EWzyJWSA0EYXKUQ6k9f/NhTBtcLBUaNASHXk7xE76MvBjrbYOxnNVNmbe/hVv0Dxp9 ttIuaob075N4Z9WwduSKMoLCwJbbMXhcIwH6HPwFCgOGBa72dGchL4PZ4aD6HEg1ncNI NolAKkUOa8NM2toM4KmTPYQOdu4tS2Gf7iPBFXDQy1rIpKbWo5vfZd0U8wHnVwCjt1x9 G/+SK8pIx0FyubmjtKd3Osr7+UPAVcQJ+gE6rybgpH4bY+rSlVnvOx+Sl/999WdRP7al nvIX3QNuSSl3Bl1mf0bms+JyknQTCkI6m+aSu4fswnHFhmiBIlCf91sBF1lLfpYU6V0a LDNg== X-Gm-Message-State: AOAM531cxtHqaBI0tU97b8kkl10a9sMgeoIuzyqlxtuyNbE+MSpa4nJJ gDLYSRFhcyJAZypV9Dmru+WmTA== X-Received: by 2002:a17:90b:4f86:b0:1df:28c5:e89a with SMTP id qe6-20020a17090b4f8600b001df28c5e89amr1016434pjb.66.1652901791534; Wed, 18 May 2022 12:23:11 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id l17-20020a170902d05100b0016168e90f2dsm2055410pll.219.2022.05.18.12.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 12:23:11 -0700 (PDT) Date: Wed, 18 May 2022 12:23:10 -0700 From: Kees Cook To: Matthias Kaehlcke Cc: Alasdair Kergon , Mike Snitzer , James Morris , "Serge E . Hallyn" , linux-security-module@vger.kernel.org, dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu , Douglas Anderson Subject: Re: [PATCH v4 0/3] LoadPin: Enable loading from trusted dm-verity devices Message-ID: <202205181221.F02CF5A9D2@keescook> References: <20220517233457.1123309-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517233457.1123309-1-mka@chromium.org> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, May 17, 2022 at 04:34:54PM -0700, Matthias Kaehlcke wrote: > As of now LoadPin restricts loading of kernel files to a single pinned > filesystem, typically the rootfs. This works for many systems, however it > can result in a bloated rootfs (and OTA updates) on platforms where > multiple boards with different hardware configurations use the same rootfs > image. Especially when 'optional' files are large it may be preferable to > download/install them only when they are actually needed by a given board. > Chrome OS uses Downloadable Content (DLC) [1] to deploy certain 'packages' > at runtime. As an example a DLC package could contain firmware for a > peripheral that is not present on all boards. DLCs use dm-verity [2] to > verify the integrity of the DLC content. For the coming v5 (which will fix the 0-day reports), if I can get some Acks from the dm folks, I can carry this with other loadpin changes in my tree. Though I'm fine with this going via the dm tree, too: Acked-by: Kees Cook -- Kees Cook