Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp859992rwn; Thu, 8 Sep 2022 09:42:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7905uCd6EZ78bmxnLCIsBfSR1QyVP2DArXURzmwzgCovyO44i8+hnR7/x/uiIU76RwErl4 X-Received: by 2002:ac2:4e92:0:b0:498:ecbd:ad32 with SMTP id o18-20020ac24e92000000b00498ecbdad32mr1152013lfr.500.1662655376104; Thu, 08 Sep 2022 09:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662655376; cv=none; d=google.com; s=arc-20160816; b=VVuiIRRlRNylLIxbbpxI9uXB6+LEW2VytDFuYu+egBo4MI+HExcZ2sPSNpkmKrgqTt MIMquMMYr6FEQ0reTzW80/JHJLOx81+As/sr35gBxIkeKDdIQucNZiyNhgsgMyM5S6D/ 5qL3D/S2diWzmYYEqhMzXHUl1rGLAf4shz6jCCG0QsSS2sT5DFEF5L/R3D4uO8v+BtKy AVlVP2zLqrfh6VfSZK2uwgtxPjndLdDqaTYSvQwCGMYp5lhzUbLA8uiP/SmgnlnL8TWT USIU+eJIRJsiKDFv9NI2i7Y8KvGLHMc6QmRk+98X1pr0BZuUE6GNDeyGtmFbr2s6JdbE K5tA== 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=Ynlv/HlbjINH5vzgYf4TA8R4RfVi30O2jA5crDrStO0=; b=DR7mMRhTwUh57rlWfKHcomqTodoD9eWjbud3lNuc544CsnLuMj8Ndo+KxhdklfQ+q2 Y3/ImS5XgD9BfJDXQrL1AOi7iwdQS7xcFbB8HO1XA6p3Gpl+CESYlQEhKlEWxmVKkFW8 M3LoodWc5tWOa2lSEuvlGebmDUMGop3GUpjOMzETCFeBT1cE95TNklP7DpXMzGwdFLUk DHcPwSeb00a6aZDJsdvnjn2V4F/THMNFOOGkwCOtu6yMgh4q+hZv3FEN4Ak8z5HKAWK1 GOGHBNY1EVJsz33pka6KURo3aI3T6GCMwyaJSEgMdFARY++eflcPvFjvGIskBod7Y1r+ LzsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oYHv1zVy; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a05651c124700b00261c71b26bfsi8189363ljh.554.2022.09.08.09.42.26; Thu, 08 Sep 2022 09:42:56 -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=@chromium.org header.s=google header.b=oYHv1zVy; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbiIHQOZ (ORCPT + 99 others); Thu, 8 Sep 2022 12:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231751AbiIHQOG (ORCPT ); Thu, 8 Sep 2022 12:14:06 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF416E9012 for ; Thu, 8 Sep 2022 09:13:33 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id q3so18262970pjg.3 for ; Thu, 08 Sep 2022 09:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=Ynlv/HlbjINH5vzgYf4TA8R4RfVi30O2jA5crDrStO0=; b=oYHv1zVyXadmL712N/OTN2ss+kfxkYYSZBY8SbeRcDbK5VRzMS9d5oRJiUpeOHaNnS y6U8mteu3RX3xSdL5vGrsFWmQ0rr4DrfFKLnopVfEAmi84XeZniDURw9fK6qKvxsWiTq 0ZT0zNSgYguC3eYyLhWhzdiJaFpeL/WVVWjRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=Ynlv/HlbjINH5vzgYf4TA8R4RfVi30O2jA5crDrStO0=; b=tGqZrOPZuUsyN4n+MB56XuS4MpMiPgMzO2ZIAF1OQ4U6+CWJS/d8xqS9fySN7qKllQ R2ZVuJdKavJU2BXRS74hksKUZwM6E+rWcNKt/TInE5lOURAb8qsKQN5XBkr3FpnafWW3 t/jQ4JBlkKLy+Vc0sQuayXaNR2xeewsa2dlvQ5/R7QvzUT7FWT9Ka/dqpBQ5uRUyRx8y B3Bnb1ietT9Uk6mHfE7IKZ5UvbFjICMmiGX05IFfBdqUvLHXXX31qhojwY0hvRO2dUT5 7PYFY8kCVoXIxuslk0JWmR/9e9A4ktc/ndWrRZf/ntqYPSb01O3CIAp4+TMUfswO/yaY rwNQ== X-Gm-Message-State: ACgBeo2pk+PBkRqMTOptCnFeetsCYA8wQ+9JvFVmHDFMrRBnPQp/v/Fs EdDBkoyw0J7KW37g3AmdJq9c7Q== X-Received: by 2002:a17:90b:1bc8:b0:200:43c7:5940 with SMTP id oa8-20020a17090b1bc800b0020043c75940mr5071911pjb.46.1662653613370; Thu, 08 Sep 2022 09:13:33 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id b14-20020a1709027e0e00b0016be596c8afsm14773738plm.282.2022.09.08.09.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 09:13:32 -0700 (PDT) Date: Thu, 8 Sep 2022 09:13:31 -0700 From: Kees Cook To: Mike Snitzer Cc: agk@redhat.com, mka@chromium.org, dm-devel@redhat.com, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, sarthakkukreti@chromium.org Subject: Re: dm: verity-loadpin: Only trust verity targets with enforcement Message-ID: <202209080912.00880AD6@keescook> References: <20220907133055.1.Ic8a1dafe960dc0f8302e189642bc88ebb785d274@changeid> <166259004596.4128104.7200162640366282166.b4-ty@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Sep 08, 2022 at 11:25:36AM -0400, Mike Snitzer wrote: > On Wed, Sep 07 2022 at 6:34P -0400, > Kees Cook wrote: > > > On Wed, 7 Sep 2022 13:30:58 -0700, Matthias Kaehlcke wrote: > > > Verity targets can be configured to ignore corrupted data blocks. > > > LoadPin must only trust verity targets that are configured to > > > perform some kind of enforcement when data corruption is detected, > > > like returning an error, restarting the system or triggering a > > > panic. > > > > > > > > > [...] > > > > Applied to for-next/hardening, thanks! > > > > [1/1] dm: verity-loadpin: Only trust verity targets with enforcement > > https://git.kernel.org/kees/c/2e1875c05267 > > Does this mean you're intending to send this upstream? I prefer to > take all DM changes unless there is an external dependency. Oh! Yeah, I added it to my tree since you'd asked me to take the original verity-loadpin series and this was a fix. I'm happy either way. Shall I drop this change from my tree? -- Kees Cook