Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1019660ybt; Wed, 8 Jul 2020 18:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvhoLfj+pPstlYHwahkMcVG0YZJq1NbOCn8EZ8UFctp1aTf3nuIiurLRVDdLXWfK+/bZa9 X-Received: by 2002:a50:f047:: with SMTP id u7mr72683088edl.274.1594258085852; Wed, 08 Jul 2020 18:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594258085; cv=none; d=google.com; s=arc-20160816; b=PFmVr4hOze+pZWpIJGhO/takHJIdGnXK1farqrudbMeyvG/HVzlipNUAZMUFrthWz4 aJtYZYRQu58cVJCMloB2rzGCUIOPRj8fBc/GCD0rusbRw7/oxEMNa7t2OKYUbWv319SZ KIKQFuHQUgKw/J0v98HprL71xsZxEyjja29xSmiYtE/JOGSU2QeSNahrBjNbTgD/Ld44 /EfwN4yIR00yh5G21Cj8oFiU1XwDCQpvVX4+iSAQhpsr+Czy8SRJunBM0orBOdKE+2wx SoHbU+Pghcmc+yd5Jf7X7JxO4Q8c9W0i1a/JUInXe5/w/8OPNRjQGXefA0oqY/qDsA4A OSiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=e8IYC3h8se6o18lzsTmHmkzu+BcqGNcCSP39UwKZ21k=; b=y19Mx9+6ZBAFMxzwdzCmsuC7W5vKZIXxuCpp+KkufjlXdLOhPErrEd4fLN10lXOgZy LKvqkblcVfiV3Xio91XC/Ev6yy+zxFaOsA21pv5TDFhF/1170ClpbdaA9sMbBbpqco5G ghgipJEY03JxMgT0DKiCYPau/jbATfFD+RYRsZ2uKBz8lTTkj9v7LC2fAvCD42eitMeM Ap61JgU04xfxbTOYXTLhrv5SF0dukdLJ+85NR3echILkfQKX+pmXrEUir9QuiomsUVkO 3XwmIFPR9LHL866bfXNDRmgkeB1Nu16OSSXhk4M1jQ/AJtHTyNWYuxFBbHwnbhmVHcGG ChQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kxan13qQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si1178598edk.332.2020.07.08.18.27.41; Wed, 08 Jul 2020 18:28:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kxan13qQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726122AbgGIB1h (ORCPT + 99 others); Wed, 8 Jul 2020 21:27:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:49566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbgGIB1h (ORCPT ); Wed, 8 Jul 2020 21:27:37 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 70D9D20739; Thu, 9 Jul 2020 01:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594258056; bh=rgIJIT6h9+jSvr31lBXUMHr0PI7lL+rZsPS91ImM10s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kxan13qQ4EfocnnjcutzbdSSn39uvQii+R5/Dz9zjeXrdOxYkhLxu9teH2j3bjXmr MIhXXogtpxPJBTK+IcXc1dn0S0cCMhDrn6ywwf8JsKa3Jnm+fs2AXlItgccnOm+J3q 4PfG/l9NeLLrsg9S8fpIAvjb49VASwMgLGvhVX8Q= Date: Wed, 8 Jul 2020 21:27:35 -0400 From: Sasha Levin To: Mimi Zohar Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Maurizio Drocco , Bruno Meneguele , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.7 03/30] ima: extend boot_aggregate with kernel measurements Message-ID: <20200709012735.GX2722994@sasha-vm> References: <20200708154116.3199728-1-sashal@kernel.org> <20200708154116.3199728-3-sashal@kernel.org> <1594224793.23056.251.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1594224793.23056.251.camel@linux.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 12:13:13PM -0400, Mimi Zohar wrote: >Hi Sasha, > >On Wed, 2020-07-08 at 11:40 -0400, Sasha Levin wrote: >> From: Maurizio Drocco >> >> [ Upstream commit 20c59ce010f84300f6c655d32db2610d3433f85c ] >> >> Registers 8-9 are used to store measurements of the kernel and its >> command line (e.g., grub2 bootloader with tpm module enabled). IMA >> should include them in the boot aggregate. Registers 8-9 should be >> only included in non-SHA1 digests to avoid ambiguity. > >Prior to Linux 5.8, the SHA1 template data hashes were padded before >being extended into the TPM. ?Support for calculating and extending >the per TPM bank template data digests is only being upstreamed in >Linux 5.8. > >How will attestation servers know whether to include PCRs 8 & 9 in the >the boot_aggregate calculation? ?Now, there is a direct relationship >between the template data SHA1 padded digest not including PCRs 8 & 9, >and the new per TPM bank template data digest including them. Got it, I'll drop it then, thank you! -- Thanks, Sasha