Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp777716iob; Wed, 18 May 2022 12:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrrfxgrlxevfVD48c4f8feKLawMk83Tfqgcgm7axrsbFt7lDxVWWTeHK9jL9THm711Rbbv X-Received: by 2002:a17:90a:14e4:b0:1df:aaf7:5822 with SMTP id k91-20020a17090a14e400b001dfaaf75822mr1634291pja.9.1652903155542; Wed, 18 May 2022 12:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652903155; cv=none; d=google.com; s=arc-20160816; b=zyH07eDpOTPM1Cm1hzqdKbgei1XD8aIkvqcUUorMdF1kmaZz57ZGjmwDwiBum3j8Da edugT5H9AmUtwfcDSH+kRxlICJAJ3bAA4m7U72UGw+D1IRUHtm/Lpp6jNk8oPSP+2DSn Wnj1odou6UOv/C7de2/UFfxBDf2LEdQbUUOqKISFCFuv0pULPbWfSt5CZWj07h2+lWpl RRiIUoSj7lXL90pZD1sNQLetVTMbjyjHDD/OY758m8HRL7r4e2NvdFoWoN9gKYuj+lNx Q3OuD4NpHyzM5MSnTl/9aExYVYyUunHbCso+vB8fukB0dasY7KfTssiLlVD27Eqw12PP ZKjg== 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; bh=eWE/Csrg3TFZq52PFagCnd5ycCPpe2W/G6e1YggcD68=; b=Ofs9f8YQFWNQDdUPqtoRr4kO6b651HjZcwT/UDcomAg6gvkYlhn/kk1eizYJjYPNNK q5WTE7EN6vNSRouiHRF9TLIzTcMlOWFDUx/G1BRsh8k7d68qrECxmOca650U63st3RNs jhIYb3yuaFH8YGO/4Jb40HjZuznZ0hiv7fuX48j71K49Hj4VLJ/4wz12p5Ubo2GIYoVu xQpUKn6wj3Hp6Od8ABgatf/k09u5BSJjonPLFYVQu0o2UQJ/05jru/zZIQ4yxH49UlOM 4Fu21vIkXkyA0hbnOJXdOGlebK4V+4EtJyObyFNErHSXiTCB7ZgC/nsRzskAoyrdjp0p v1tA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t19-20020a63dd13000000b003c642710cc1si3447230pgg.725.2022.05.18.12.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 12:45:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84D0520B542; Wed, 18 May 2022 12:43:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242073AbiERTni (ORCPT + 99 others); Wed, 18 May 2022 15:43:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242059AbiERTnb (ORCPT ); Wed, 18 May 2022 15:43:31 -0400 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FD2205277 for ; Wed, 18 May 2022 12:43:29 -0700 (PDT) Received: by mail-qk1-f173.google.com with SMTP id a22so2293191qkl.5 for ; Wed, 18 May 2022 12:43:29 -0700 (PDT) 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=eWE/Csrg3TFZq52PFagCnd5ycCPpe2W/G6e1YggcD68=; b=ip1o1rYVna8KpPTA2V9/Iag8IVjYMirsqPSdJUZzm5So6VwV8NjmzGpKfbw9hLEp4g KodEo4wLPT+v8tDI+iLn6wS77bk8CQnvhk2LYXvlS9dohRd0Q3pdTk4/VG9H+6AUT303 +WWAiO3aaP5zcKcfJybL23apCzUxB0M0Bry6vYceasu5v2NhquoZ1J0fK6tL60Nblu8O I6rY7pQ3Qr1kZz3wkq46Rrfmj6khb2Zg0EzCMB7sxLZmOgp8dzlZAwg7cqk7VK1VBWE2 OlXz8Nwy2u+gw5rTZdoqbgyPL15ekoKh8et0a1PM4+tqlkA8cPuAFamR7WxABcpQBuWh zBRA== X-Gm-Message-State: AOAM531pv6QuX1+UGklyARMWRttnOLtqBgvYEFQLbZmlFHvF9ghYyezu GQ66TIYeEKMbTY8di5qSLrKi X-Received: by 2002:ae9:e90d:0:b0:6a3:28eb:1a4f with SMTP id x13-20020ae9e90d000000b006a328eb1a4fmr815862qkf.21.1652903009028; Wed, 18 May 2022 12:43:29 -0700 (PDT) Received: from localhost (pool-68-160-176-52.bstnma.fios.verizon.net. [68.160.176.52]) by smtp.gmail.com with ESMTPSA id h8-20020ac85148000000b002f39b99f679sm83146qtn.19.2022.05.18.12.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 12:43:28 -0700 (PDT) Date: Wed, 18 May 2022 15:43:27 -0400 From: Mike Snitzer To: Kees Cook Cc: Matthias Kaehlcke , Alasdair Kergon , 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: References: <20220517233457.1123309-1-mka@chromium.org> <202205181221.F02CF5A9D2@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202205181221.F02CF5A9D2@keescook> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 Wed, May 18 2022 at 3:23P -0400, Kees Cook wrote: > 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 I'll review it once it's posted. But I'm going to reply to v4's 1/3 now.