Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1354309imu; Sat, 17 Nov 2018 23:28:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eBfI3LX2Nnw70PGtvc7TatfAFXvBvC7n+AVL3DfPuDxwFJ3xbNp5gOoqDCp3gVB6HmvLzy X-Received: by 2002:a62:db41:: with SMTP id f62mr3916311pfg.123.1542526135013; Sat, 17 Nov 2018 23:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542526134; cv=none; d=google.com; s=arc-20160816; b=A4LBW6w8PWYef7wHRCZIjTkncvoVszSmSUfIepnx2+Hvr2zQwG+iltxX3AVSutWaPa BUXwTl/K6zxiTSkL1aoAkzU67ybQu7AhM6yKbCfiPD2BEyXAZnJRR8+uJ+pSXfYH1ami S9X9CTB0ll7A5lBHt+IOcO9Tpb4Gd6BNeuabhqC58wLHfYMUhLx+cd2Krw0lSRisC26l JIqIMwnxIvlzOrDRjFbbur+mjW4lOMjWijjlVkigBlkKKGgHty5Pgy5PUANDpvLcZDFr QqnLOFZsjdsFnQ81iJHz2T18f+g75HmoDCX7nOii3bo/MdXM4IwGt0Q9t2phiwRMpmLh fzeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=pkXTCpS4aRUFzbYG5LcDKM7B83+3i543bPToJoeYylM=; b=FjLIqfCe7+bPtdIdTbdfe8rzoaG0lFFhxm+tQIS4Vf4/NTQaknn/gupUv9Y8IEmm6F OQBZP1o9e94/8LEDUKzbZg+Qsgb+nxMC1yGWlYpVJHrnDRLvJri06/oqekVI61PxibIu vTV8fiAzZ6cXUAYNkUPIVLnHU6vRwXa/fI2ZuWAeEpn7yU+MhJcmIYiWH42Jat3YAgMY DE2JA8ljrakKzBVzEbiLfSVz5fVx3RJ7facdS3xXa0bsLJ6DQt/RXZ0Cnfy7SkueJOfh 9SonEhDeE15JFg1VfCpj8FpKQGKiAgHeyUMM5hyJ4ufLjN8E7Jr1uQufgGF2iDTBKvTS qH5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si6091295pgf.527.2018.11.17.23.28.37; Sat, 17 Nov 2018 23:28:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbeKRRrW (ORCPT + 99 others); Sun, 18 Nov 2018 12:47:22 -0500 Received: from mga11.intel.com ([192.55.52.93]:45324 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbeKRRrV (ORCPT ); Sun, 18 Nov 2018 12:47:21 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2018 23:27:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,247,1539673200"; d="scan'208";a="280923574" Received: from kaczmarx-mobl.ger.corp.intel.com (HELO localhost) ([10.249.254.89]) by fmsmga005.fm.intel.com with ESMTP; 17 Nov 2018 23:27:47 -0800 Date: Sun, 18 Nov 2018 09:27:45 +0200 From: Jarkko Sakkinen To: Roberto Sassu Cc: zohar@linux.ibm.com, david.safford@ge.com, monty.wiseman@ge.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, silviu.vlasceanu@huawei.com Subject: Re: [PATCH v5 7/7] tpm: pass an array of tpm_bank_list structures to tpm_pcr_extend() Message-ID: <20181118072745.GA5897@linux.intel.com> References: <20181114153108.12907-1-roberto.sassu@huawei.com> <20181114153108.12907-8-roberto.sassu@huawei.com> <20181116150352.GA3612@linux.intel.com> <9c534ed1-7832-7a3b-3e69-5fcc25c565cc@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9c534ed1-7832-7a3b-3e69-5fcc25c565cc@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 04:55:36PM +0100, Roberto Sassu wrote: > On 11/16/2018 4:03 PM, Jarkko Sakkinen wrote: > > On Wed, Nov 14, 2018 at 04:31:08PM +0100, Roberto Sassu wrote: > > > Currently, tpm_pcr_extend() accepts as an input only a SHA1 digest. > > > > > > This patch modifies the definition of tpm_pcr_extend() to allow other > > > kernel subsystems to pass a digest for each algorithm supported by the TPM. > > > All digests are processed by the TPM in one operation. > > > > > > If a tpm_pcr_extend() caller provides a subset of the supported algorithms, > > > the TPM driver extends the remaining PCR banks with the first digest > > > passed as an argument to the function. > > > > What is the legit use case for this? > > A subset could be chosen for better performance, or when a TPM algorithm > is not supported by the crypto subsystem. Doesn't extending a subset a security concern? /Jarkko