Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp454893pxb; Wed, 27 Jan 2021 11:51:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxH73UWfBLLrqS+nvsTHAQmM5XD2qXykQtO/fIK+YpddAMLQGbGchyH+T4ycCRSi+YFS3Pv X-Received: by 2002:aa7:c44f:: with SMTP id n15mr11044979edr.150.1611777104708; Wed, 27 Jan 2021 11:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611777104; cv=none; d=google.com; s=arc-20160816; b=do2esa0owArutiOHS5cEHh8YhdhQPVH1GlPUIoJNCNkF7Ac4DfpllxLRU9vb/ME95o cfxL8lv7LHwfdip1fVNp/2U39HDqlDS5DXONXgsjgoV6Ch0bBU/FdDpYiuA1pLNRuZ28 5og+9/9M91vKOnWemqSU+6tL6evIyFoy4pisWib3zAtxhMuTV8jifv6wXGk+ZCZDc8Lw lCgspKANLenSRQfZ/2uJtCmyd1SxWjkb0IwAPImkHQVwinQov+y63ULl9r+PVkru4mHz jjU5NNAfEHu0Y73mT+gaTFINflXnBxCRlRSh9PgdVTOiEQyDVNyvUAtcnxDtXUdFWGxi aZEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=KndpbbZoPqpZOUkil73MqEPh/2PW9nl6vovdplbchQU=; b=jz4lIwYgCmiupqcWTAD5ATEC+xmbJOyRYDaN7kpsfZjv6D8zrvkN2GeaKHEAJyC8M3 5oMt95s8msb4x1eniKp/g3efmwRzpoAh/JPjZA2vIESjDwtl9wM3c6LK1TyR2DWwXe83 1/5DRX8RuiKQNGzX3sOfi2DFzDtGVZ6rOK1sW3urdm81N08RSRNmeR04O9PbDgZAa/d4 i6IwnMlOyqbWWUrHFgAavBn4Zh3BPFyc4XU06s+J24bERuwqTjiRIeUYE8txsschhJe2 jtpuQnjt4YPbiwl3xueMLAG0XSlhW/P+jsYc7KFjJkf9L0OZlL0lJ190Q5U4zOge4+6i s60A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@elloe.vision header.s=2019 header.b=QLqnp4U7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si1185919ejd.674.2021.01.27.11.51.19; Wed, 27 Jan 2021 11:51:44 -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=fail header.i=@elloe.vision header.s=2019 header.b=QLqnp4U7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405447AbhA0Bqi (ORCPT + 99 others); Tue, 26 Jan 2021 20:46:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395045AbhAZTEZ (ORCPT ); Tue, 26 Jan 2021 14:04:25 -0500 X-Greylist: delayed 460 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 26 Jan 2021 11:03:45 PST Received: from iam.tj (unknown [IPv6:2a01:7e00:e000:151::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E56FC061573 for ; Tue, 26 Jan 2021 11:03:45 -0800 (PST) Received: from [IPv6:2a02:8011:2007:0:37a2:855e:7ada:e97f] (unknown [IPv6:2a02:8011:2007:0:37a2:855e:7ada:e97f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by iam.tj (Postfix) with ESMTPSA id 93A01340F6; Tue, 26 Jan 2021 18:56:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elloe.vision; s=2019; t=1611687361; bh=pW5BRli1GLGipBIINvB0TPU8uc9pLCA7uO+KzYIjKp0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=QLqnp4U75FOJmxWaBj47zhyMtwv3z5qUoxEt5iy32Ze+uuN88tnXz0r1iCIZ7WIty 6mRj29gYHxQjrtcJPbgRYD1DPb0GLMryd4SMtro3kaMNV9DqQri6LRSK8QNrmONmZi LJlRxWa0Up0K/csa1kOPlL7iPM6Lxka35SVEP07pdF7C+cEDqaaSNmEFchORoB4/Yg ACjc2fYPdB2azFATIu/EKw7W9Cu+xsF7wgxyqxA2H8vRQeIco1+oOKWrFg9FFOeX3c WMHTLnP7ttgzlspCye1Gw/Q9QPvWJ/pBVwhKdKu72Y4S5bZ+JCyk9EFO8vGVlUZ5Wv 13uxMcGjh+1GA== Subject: Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls To: James Bottomley , =?UTF-8?Q?=c5=81ukasz_Majczak?= , Guenter Roeck , 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 References: <20210123014247.989368-1-lma@semihalf.com> <20210125171846.GA31929@roeck-us.net> From: "Tj (Elloe Linux)" Organization: Elloe CIC Message-ID: <31c50c4f-487f-1977-2962-4a138b0d0ecc@elloe.vision> Date: Tue, 26 Jan 2021 18:55:59 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/01/2021 16:46, James Bottomley wrote: > 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/ > This patch solves the error messages on top of -rc5 > 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 > >