Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4944505pxj; Tue, 25 May 2021 22:02:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWIVZnSQebfuUm+i61prVUcb6g9dPp4QGZ0iojhYpgsz2je40mvLM9nwyi6afNjaoenRwK X-Received: by 2002:a50:d68a:: with SMTP id r10mr36047027edi.90.1622005324733; Tue, 25 May 2021 22:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622005324; cv=none; d=google.com; s=arc-20160816; b=ptRmqLtkPiXLbm6+8IulCk6ibxRsmDhxzQW0uAoKMX6DaCQCf91+Jb5odK3jh6ToFu tbU890yJ8UNHmOf/DYlliBeoNzCY+4QHrbe4P/5vX5VaDKkkuTxMAYls6+pJBIfZ7Ldf zad9GO3USgNXNG/c5loS+DQU8X7+6i2BO+t9+I3yXN67rRqrHPKHKCVyG7EfchZf5P5g rXuFw92q5sfnJewM8nxXMcmACsQ8T/EkIPiqyFb0wjWtFAhhw0drdmx34POIa1LyNE/u TyTMq2cK0khQuRSrh8OAEbudhhnEighgepiznUc2F6yxV8TJnEBHYNsgdF7hiQ7lOVOs ji1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L3FcWrDsz+pvpOf4azjMyRD+oRG7euC0/1bAUhvuldU=; b=r8Lvv8UMv3FGqNo60YYJjQEWGw3aqJLduOY8NrPbbEJdNuoRLegDQ3sRMMf9NMP2i4 KL2krKTGM3613X1eeVJo0C6hz0WAgJY8ij9rjjTMz8ZIo29EcPyRHb6jQEuZQ8vDVKOq 7hlFgH+CLYBt/2jCqPjrJK+xVHVMhjRJp+w1a72epVnUNwuXQQaBa38PRj4kn3kDiMjR fyAB8wlwawBuwrRPMfKw1rQVFglSFC/MY+WWO8m5lV/l5he9kVIOYsUQWMYVg6NRhzxB UEIuGHbkepPDpT5I4O/iAXFgGcaS+yTxTtB3iX1wsQA7aqJ4g1MqxaXiEpsZ48/pxTAK kH2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CxHvjd4x; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb35si16187210ejc.209.2021.05.25.22.01.19; Tue, 25 May 2021 22:02:04 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=CxHvjd4x; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbhEZE6T (ORCPT + 99 others); Wed, 26 May 2021 00:58:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231174AbhEZE6S (ORCPT ); Wed, 26 May 2021 00:58:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CE33613D3; Wed, 26 May 2021 04:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622005007; bh=Gv/hxdauCqc76+7LQ3UPDSB9Ljk9StS1O6mcvQs6w6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CxHvjd4xK2FrNpdbX8BX0Yu/xEWT0F/0CmS+aJcGFZ4c7RATtBdjtjx9YKzG8VKzr TKu4cQR1oiuYocDjQXCMwEcZ8yhAOM14zpzn6SObMFN1+iv6/p+ZpFZ0XHbECdYO67 S5Fw85PI1pA/sDX3SswbCmvASLvHxjrjotxBfWvKGN+h17uOISwF8+fJmDhKL7k3EX MUd9Hte5MkM5jFO5K5nPk0HA3FhDCkBIq22lTfEbP/egKyA1Wex/4QfXzp0lZvMNtI EDVm/5F6J5WyH/Qt4AO21ThMHA0i4AzRII2AKFItcdhBScjd1wXBOPZ/yUQOMlEYkm bHgXuEM7C8cRA== Date: Wed, 26 May 2021 07:56:45 +0300 From: Jarkko Sakkinen To: amirmizi6@gmail.com Cc: Eyal.Cohen@nuvoton.com, peterhuewe@gmx.de, jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org, Dan.Morav@nuvoton.com, oren.tanami@nuvoton.com, shmulik.hager@nuvoton.com, amir.mizinski@nuvoton.com Subject: Re: [PATCH v4] tpm2: add longer timeout for verify signature command Message-ID: References: <20210525111325.158790-1-amirmizi6@gmail.com> <20210525111325.158790-2-amirmizi6@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 07:50:43AM +0300, Jarkko Sakkinen wrote: > On Tue, May 25, 2021 at 02:13:25PM +0300, amirmizi6@gmail.com wrote: > > From: Amir Mizinski > > > > While running a TPM2_CC_VERIFY_SIGNATURE operation with RSA 3072-bit > > keys the TPM driver fails with the following error: > > > > "kernel: [ 2416.187522] tpm tpm0: Operation Timed out" > > > > Since the TPM PC Client specification does not specify a number for > > verify signature operation timeout, and the duration of > > TPM2_CC_VERIFY_SIGNATURE with RSA 3072-bit keys exceeds the current timeout > > of TPM_LONG (2 seconds), it is preferable to pick the longest timeout > > possible. > > > > Therefore, set the duration for TPM2_CC_VERIFY_SIGNATUE to TPM_LONG_LONG > > (5 minutes). > > > > Link: https://trustedcomputinggroup.org/resource/pc-client-specific-platform-firmware-profile-specification/ > > Signed-off-by: Amir Mizinski > > --- > > Thank you. > > Reviewed-by: Jarkko Sakkinen I mean @kernel.org. I mangled the short summary as "tpm: add longer timeout for TPM2_CC_VERIFY_SIGNATURE" given that 1. The subsystem tag was wrong. 2. Always to talk about the *exact thing*. I.e. in this case it's preferable to just write the command name, as"verify time signature command" does not have any formal menaing. It's now applied, thanks. /Jarkko