From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4A7F2211E2C0A for ; Thu, 21 Mar 2019 06:54:57 -0700 (PDT) Date: Thu, 21 Mar 2019 15:54:51 +0200 From: Jarkko Sakkinen Subject: Re: [PATCH] security/keys/trusted: Allow operation without hardware TPM Message-ID: <20190321135451.GD4603@linux.intel.com> References: <155295271345.1945351.6465460744078693578.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <155295271345.1945351.6465460744078693578.stgit@dwillia2-desk3.amr.corp.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: linux-nvdimm@lists.01.org, James Bottomley , Roberto Sassu , linux-kernel@vger.kernel.org, Mimi Zohar , David Howells , keyrings@vger.kernel.org List-ID: On Mon, Mar 18, 2019 at 04:45:13PM -0700, Dan Williams wrote: > Rather than fail initialization of the trusted.ko module, arrange for > the module to load, but rely on trusted_instantiate() to fail > trusted-key operations. > > Fixes: 240730437deb ("KEYS: trusted: explicitly use tpm_chip structure...") > Cc: Roberto Sassu > Cc: Jarkko Sakkinen > Cc: James Bottomley > Cc: Jarkko Sakkinen > Cc: Mimi Zohar > Cc: David Howells > Signed-off-by: Dan Williams It should check for chip in each function that uses TPM now that the code does not rely on default chip. Otherwise, the semantics are kind of inconsistent. /Jarkko _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm