Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4191831ybg; Tue, 29 Oct 2019 03:35:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqz54V9pFIovsfRiIOuviP4022YLFqNR6PYxINN/NnY8idQyGu/KSx/KQWVrU7l5DXEKYImi X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr25322089edw.166.1572345318546; Tue, 29 Oct 2019 03:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572345318; cv=none; d=google.com; s=arc-20160816; b=QK9ZwdxNZihI2Fy/0i7LNpe0ZtIc69RmddyKOqTBzqtR5yuNLQvM8+P1sAbaafcXf3 0j0bGKeMcSYWzC14mw2jfK6f1wP/ZPyWIgPZo0jj/oAXoawYzhX9/mldo9mcQpWN2yjE i4YE3AfkCD+eB+lsB9nWkDprmmaIqOghJOC6RfWryTtBGU04PN6YUcSxxG9fTK9NIWaV 4u5Vq8Paar0635pAhRE/G6wtUtsS0rjuZ8Npnw/BKIxJ8aqV12xH5xwmqe9tMhx5B+3O 2z9o+LPyUL7Go8gmfpqFfjsqL8qcPQIhqnTU0fxD/BD+A87D6zZbI2ZFuCaJ5kZ0zTGx yamw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=v9FheMj1ItxxmIbo/N5LoRNvDXNv/R2P28tKoLQVksk=; b=ot3gSPOKYT2YzxBgirNqIyMFmgPnlotGdh/3MBg8u8wiP3TkIbuH0KWg+2ylxCGie/ UsYWtwjiJYiR/UemH+raWu/zFRsu62E5HckjbAqORUmtkRUHD4Qc05eMGrZF2I5AioXi gw5b1xL3PuKb8f1n1KvivutO/agQ/lUoYm7ayD1+a4yl50XzyqEESqovJFrNbtx6oHxX BphTy79mbKMayXjTARSHrBgcGv9mq1P5/gOSz3f1CDQV9K+7R/LY6TYT61awyBH1qq1e v8eclH2OPNRi8WyQ7a2UGSaGlNPBARp2FfBUVXm2PuxxGEOlqvtlgs0K4+FWoLRz4HIr /mbQ== 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 u11si10611065edi.385.2019.10.29.03.34.54; Tue, 29 Oct 2019 03:35:18 -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 S1730591AbfJ2JZW (ORCPT + 99 others); Tue, 29 Oct 2019 05:25:22 -0400 Received: from mga18.intel.com ([134.134.136.126]:18923 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727257AbfJ2JZW (ORCPT ); Tue, 29 Oct 2019 05:25:22 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2019 02:25:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,243,1569308400"; d="scan'208";a="198871215" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.122]) by fmsmga007.fm.intel.com with ESMTP; 29 Oct 2019 02:25:17 -0700 Date: Tue, 29 Oct 2019 11:25:16 +0200 From: Jarkko Sakkinen To: Mimi Zohar Cc: David Howells , Petr Vorel , shuah , James Bottomley , linux-integrity@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] selftest/trustedkeys: TPM 1.2 trusted keys test Message-ID: <20191029092516.GA13848@linux.intel.com> References: <1571944467-13097-1-git-send-email-zohar@linux.ibm.com> <20191028203014.GA8279@linux.intel.com> <1572295513.4532.270.camel@linux.ibm.com> <20191029091535.GB9896@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191029091535.GB9896@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 Tue, Oct 29, 2019 at 11:15:35AM +0200, Jarkko Sakkinen wrote: > On Mon, Oct 28, 2019 at 04:45:13PM -0400, Mimi Zohar wrote: > > On Mon, 2019-10-28 at 22:30 +0200, Jarkko Sakkinen wrote: > > > On Thu, Oct 24, 2019 at 03:14:27PM -0400, Mimi Zohar wrote: > > > > Create, save and load trusted keys test > > > > > > > > Signed-off-by: Mimi Zohar > > > > > > > > Change log v1: > > > > - Replace the directions for using Trousers to take ownership of the TPM > > > > with directions for using the IBM TSS. > > > > - Differentiate between different types of errors. Recent bug is causing > > > > "add_key: Timer expired". > > > > --- > > > > > > Is not really usable as a selftest because of 3rd party dependencies. > > > > As part of diagnosing trusted keys failure, there is some > > hints/directions as to how to take TPM 1.2 ownership, but it does not > > take ownership. ?The previous version included directions for using > > Trousers. ?This version provides directions for using the IBM TSS. > > ?Feel free to include additional hints/directions. > > You must write your own minimal user space that can be included > to the kernel. Otherwise, we cannot take it. I'll anyway try to setup user space with TrouSerS so that I can try it out. BuildRoot has recipe for that but not for IBM TSS 2.0 so I'll skip that and use my own test script for TPM2 trusted keys. /Jarkko