Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp219003ybp; Tue, 8 Oct 2019 16:54:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3VDd13djRiLVIIhX+ULAFN+4VyYrXc59j6swFFBCd+brU6RlBxOr91dg+0vgxgh8DcZK8 X-Received: by 2002:a50:ab10:: with SMTP id s16mr562347edc.118.1570578867339; Tue, 08 Oct 2019 16:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570578867; cv=none; d=google.com; s=arc-20160816; b=GRHpFY/R4cvLVb6aYHKe4KVbu7Y2sGb0l0+ROIZDoijWX2nFyrCquDHVbcHWNoqKi2 gSNx4mfxQ5xCYT7xi2J3H3GjReM64ikeTe7wwWQUWPUBsvpoXy1HRr097sJWbs4Jmvql 4TXHdzthLd62HXMpxPJaUmfHB261XWLILU0GHrVxqcInqc7tzKYn+v3hS52oYr6wii6c 7k3ugl3vX+8zg89p5qUkfOwXccaQvuiwEzBiYsXwI/NOfLamJjfN2HDquSBE9L5O3Wu8 eYBKPoaPCaO2PLKEMNbk6NStd6U8zgW3EH1UIQ8diD5QWuE6RifNgM1dzNxKNNWzR23i rkQQ== 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=YEtYGnsQVQQW9A6p5bDakebGUJn7klaNlW4Kzv4eVZA=; b=ncMU8e2WUdvVQDWPAtu4syBhLIlWekQ7AtNkFMHgsdAz2vgSlK2VR/8aNLzYSseNiG IxN57TJDWhIQ2TltTrnYZ5YqRqS1O/ZINy3iFTRSu/wk8x833MNUF4q+53ePMJ5URbN3 Ijj7HQv/UA+/9Imgrq8Lih/I1QdaOjQ3kkjcmd1xoVKwRM2qPK+zaz32HdIPpZL3hmqa AMt3nInVrB0KNHfoeZTEH9u84XB1orppuIpj8r2XYcLP9if9ITGdnV0a8yhyhbKCgix2 e0qKrOTVIbloTpzi0IPnx4R1pJh6Ccl2Q10WVcTLsXQ4EvMQWMK/Z1oNwxjxsqxgK380 +qPQ== 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 c9si316680eds.211.2019.10.08.16.54.03; Tue, 08 Oct 2019 16:54:27 -0700 (PDT) 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 S1729860AbfJHXxq (ORCPT + 99 others); Tue, 8 Oct 2019 19:53:46 -0400 Received: from mga17.intel.com ([192.55.52.151]:49595 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbfJHXxp (ORCPT ); Tue, 8 Oct 2019 19:53:45 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Oct 2019 16:53:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,273,1566889200"; d="scan'208";a="197847774" Received: from jhogan1-mobl.ger.corp.intel.com (HELO localhost) ([10.252.2.221]) by orsmga006.jf.intel.com with ESMTP; 08 Oct 2019 16:53:40 -0700 Date: Wed, 9 Oct 2019 02:53:39 +0300 From: Jarkko Sakkinen To: Ken Goldman Cc: "Safford, David (GE Global Research, US)" , Mimi Zohar , "linux-integrity@vger.kernel.org" , "stable@vger.kernel.org" , "open list:ASYMMETRIC KEYS" , "open list:CRYPTO API" , open list Subject: Re: [PATCH] KEYS: asym_tpm: Switch to get_random_bytes() Message-ID: <20191008235339.GB13926@linux.intel.com> References: <20191003114119.GF8933@linux.intel.com> <1570107752.4421.183.camel@linux.ibm.com> <20191003175854.GB19679@linux.intel.com> <1570128827.5046.19.camel@linux.ibm.com> <20191004182711.GC6945@linux.intel.com> <20191007000520.GA17116@linux.intel.com> <59b88042-9c56-c891-f75e-7c0719eb5ff9@linux.ibm.com> <20191008234935.GA13926@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191008234935.GA13926@linux.intel.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 Wed, Oct 09, 2019 at 02:49:35AM +0300, Jarkko Sakkinen wrote: > On Mon, Oct 07, 2019 at 06:13:01PM -0400, Ken Goldman wrote: > > The TPM library specification states that the TPM must comply with NIST > > SP800-90 A. > > > > https://trustedcomputinggroup.org/membership/certification/tpm-certified-products/ > > > > shows that the TPMs get third party certification, Common Criteria EAL 4+. > > > > While it's theoretically possible that an attacker could compromise > > both the TPM vendors and the evaluation agencies, we do have EAL 4+ > > assurance against both 1 and 2. > > Certifications do not equal to trust. And for trusted keys the least trust solution is to do generation with the kernel assets and sealing with TPM. With TEE the least trust solution is equivalent. Are you proposing that the kernel random number generation should be removed? That would be my conclusion of this discussion if I would agree any of this (I don't). /Jarkko