From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D862C4332F for ; Mon, 30 May 2022 15:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232320AbiE3PxE (ORCPT ); Mon, 30 May 2022 11:53:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238453AbiE3Pwz (ORCPT ); Mon, 30 May 2022 11:52:55 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1440B4F9E0 for ; Mon, 30 May 2022 08:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1653924411; x=1685460411; h=date:to:cc:subject:message-id:references:mime-version: content-transfer-encoding:in-reply-to:from; bh=i3tOxJMCec0dnCZq6mXmMe+Gt3ijRAQKPLJBXPtowmA=; b=I9WtTGskxVleIL0rha+H4XJmFIsRuyhwnpFUup9tgYXQf0NlenbWCpaj rcZymbwK1EP+qQLA1Kw7KHeGmcf/GHE7r6HXInFwlxGMv8LxzyHAcGKTA 1JewBNQ/m4tHGrJ/ieQbn9afjbknVcxIuoIxGzMgUYPXLbTsIQJHAYdY8 T0Q+D/Q3To0BRdSm1g9aPu19jZjYqbiXvqhsUhPB9p92PxdFO+biA/D+v 0dxf3NI/wlBAyx4sX4JO/ufdOWF/dlq1gnplynFyMBZ00tqza8/YpTN04 p6EFB9HHLFB97KCuxeo51r42OOhSxxhcqf6y1e+afJpmSU7/Ncmw1xM/e A==; Date: Mon, 30 May 2022 17:26:49 +0200 To: Jarkko Sakkinen CC: =?iso-8859-1?Q?M=E5rten?= Lindahl , Peter Huewe , Jason Gunthorpe , "linux-integrity@vger.kernel.org" , kernel Subject: Re: [PATCH] tpm: Add check for Failure mode for TPM2 modules Message-ID: References: <20220425102552.663069-1-marten.lindahl@axis.com> <3991049ce6859f51e5b61e94de269f4672a568cb.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: From: Marten Lindahl Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Mon, Apr 25, 2022 at 05:52:04PM +0200, Mårten Lindahl wrote: > On Mon, Apr 25, 2022 at 04:03:33PM +0200, Jarkko Sakkinen wrote: > > On Mon, 2022-04-25 at 12:25 +0200, Mårten Lindahl wrote: > > > In commit 0aa698787aa2 ("tpm: Add Upgrade/Reduced mode support for > > > TPM2 modules") it was said that: > > > > > > "If the TPM is in Failure mode, it will successfully respond to both > > > tpm2_do_selftest() and tpm2_startup() calls. Although, will fail to > > > answer to tpm2_get_cc_attrs_tbl(). Use this fact to conclude that TPM > > > is in Failure mode." > > > > > > But a check was never added in the commit when calling > > > tpm2_get_cc_attrs_tbl() to conclude that the TPM is in Failure mode. > > > This commit corrects this by adding a check. > > > > > > Signed-off-by: Mårten Lindahl > > > > Reviewed-by: Jarkko Sakkinen > > > > I think this should actually have the fixes tag. It's a regression, > > right? I can add it. Hi Jarkko! Just curious. I can't see this patch was added to linux-next. Was I expected to do something more to it? Kind regards Mårten > > Hi Jarkko! > > Thank you. Yes it should have a fixes tag for the mentioned commit. > > Kind regards > Mårten > > > > > BR, Jarkko