Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4235654pxb; Tue, 26 Jan 2021 16:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOZIpYdzi2JdKaAC4MM9rXyxcnr3WRFVYY5s3TRlwm/xT8KhARU1iEVloIC4Grb8j5sCqY X-Received: by 2002:a17:906:7e42:: with SMTP id z2mr5042796ejr.177.1611707767356; Tue, 26 Jan 2021 16:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611707767; cv=none; d=google.com; s=arc-20160816; b=rh9zXXR8ThOuBFedRPi7nuGsaWcFGThhDcvKBbkM9g/Wao1QQspFm1YizSuV4nOsNV pJ9b3s9uLNsJqD9R/THcDlJadJJxZ73AkdA68XnYfTdp3mlz3pLgHVdbPvhOzSt9v0kc aCGcFz5tdzIDWeZP4fSi3wn4Ljq8OSy7b3hP/QApSedLse5I1OWfKPyOB0BrM5TB8HJI bvIUSXegzKwe49vefDcmtxnJ29zK2pVk2bCBRqCIkccKW0Viq59ztLUaNfOLt7AJLaYp 3vJx13MBLNhTuaaX0myQ1sEpihCGxXIbLv2/Fv+XsmcYIAbt3EH15iIZBtG3LHO2XFuX 5LtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=GyDVReX3kwjbqposJzIl7of/vc1oYitG4mJNX7UfavA=; b=IRikuJUxiCw0BBiG6X5ABtutQX/ElL17B0qRxjbZHUHJ0Zjroq2vtCF9DzUpyfug+3 fCsY0aENlWl0qwHkA/qzxLCE5j/k+H8HlywFpYvWGzNoe3C9ZrJKhx2wsdyZ3aiEB53Z t4F7swSx9exz4t3CJ2VwFz20foLkrIWXJLaBiIPhCuCNnT501SDvgf/uyX6mWaHTlQvN c4dsrEcHWKNOVzly50Vhtm3aLWIvDFJZyhPe3wH0ghM45fWSPVLf/H9kqLhgUW+4Hcih NLigjIqQbrEPoEGcfGC+wGz1gvYmTIg9hReGmBUWdSrXCbP6lIFn/u9WPdAHVl6FlkTh h8pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=ppIoAxCF; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=ppIoAxCF; 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=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx11si113650ejb.357.2021.01.26.16.35.42; Tue, 26 Jan 2021 16:36:07 -0800 (PST) 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=@hansenpartnership.com header.s=20151216 header.b=ppIoAxCF; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=ppIoAxCF; 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=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404079AbhA0ASL (ORCPT + 99 others); Tue, 26 Jan 2021 19:18:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728600AbhAZRIE (ORCPT ); Tue, 26 Jan 2021 12:08:04 -0500 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [IPv6:2607:fcd0:100:8a00::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 041F5C061A2B; Tue, 26 Jan 2021 08:46:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 60BB6128025E; Tue, 26 Jan 2021 08:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1611679609; bh=YYXnRPkivoOQxj54PhIN26oV5DaWUkpUQrmfHkVSlNU=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=ppIoAxCFDVqtgUWlciU6HC4WacNGp4rGFFc9rJ3UYff+qWhXsPAw/7CxEwo8D9t9r VKEMzkyoULgQhSLHDJwwr45B4xgnnkkPSi4hT88o41fDDQA6YIDr9x4b3QJasMGjhq TWViLYPh6j/ibqwTHyBotM/JJqFZQjzabutH3ZjI= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gPbahwszsqyx; Tue, 26 Jan 2021 08:46:49 -0800 (PST) Received: from jarvis.int.hansenpartnership.com (unknown [IPv6:2601:600:8280:66d1::c447]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id B80391280232; Tue, 26 Jan 2021 08:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1611679609; bh=YYXnRPkivoOQxj54PhIN26oV5DaWUkpUQrmfHkVSlNU=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=ppIoAxCFDVqtgUWlciU6HC4WacNGp4rGFFc9rJ3UYff+qWhXsPAw/7CxEwo8D9t9r VKEMzkyoULgQhSLHDJwwr45B4xgnnkkPSi4hT88o41fDDQA6YIDr9x4b3QJasMGjhq TWViLYPh6j/ibqwTHyBotM/JJqFZQjzabutH3ZjI= Message-ID: Subject: Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls From: James Bottomley To: =?UTF-8?Q?=C5=81ukasz?= Majczak , Guenter Roeck , "Tj (Elloe Linux)" , Dirk Gouders Cc: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Radoslaw Biernacki , Marcin Wojtas , Alex Levin Date: Tue, 26 Jan 2021 08:46:48 -0800 In-Reply-To: References: <20210123014247.989368-1-lma@semihalf.com> <20210125171846.GA31929@roeck-us.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-01-26 at 16:46 +0100, Ɓukasz Majczak wrote: > Hi Jarkko, Guenter > > Yes, here are the logs when failure occurs - > https://gist.github.com/semihalf-majczak-lukasz/1575461f585f1e7fb1e9366b8eceaab9 > Look for a phrase "TPM returned invalid status" We've had other reports of this: https://lore.kernel.org/linux-integrity/ghsgagsnag.fsf@gouders.net/ https://lore.kernel.org/linux-integrity/374e918c-f167-9308-2bea-ae6bc6a3d2e3@elloe.vision/ The problem is some TIS TPMs don't begin in the correct locality so we have to set it. When I proposed the check, I also proposed a fix for this problem: https://lore.kernel.org/linux-integrity/20201001180925.13808-5-James.Bottomley@HansenPartnership.com/ But it's part of a series that never went upstream. Part of the reason was Jarkko proposed the get/put patch to fix this instead, but that never went upstream either. We need to decide an approach and apply one or other fixes. James