Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6482258rwr; Tue, 2 May 2023 00:41:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eEbu6cU76Kzkc5TRGwVtGRcLLWS/xIb2G3EGU+5jUtUO+M3I9ZQLh3UItxk8AGn1oQ+O0 X-Received: by 2002:a05:6a20:8415:b0:f8:a481:a952 with SMTP id c21-20020a056a20841500b000f8a481a952mr20350700pzd.1.1683013277555; Tue, 02 May 2023 00:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683013277; cv=none; d=google.com; s=arc-20160816; b=oSAFUrULsD30tptNnh33d63EnCFriYt/luEr7TV/UlHuwoq8IQvMRiaYP3qvsLjU8j vBuRdhJt2k/xeIzqncC/q9QJlq6nH7gJ581xxmevpT8Y1wIStG3dY+vwITZ/8sJI/lcj uht8dSyijKPuwbOx+DDPfSs1hj4piTtqUgdWtifSML0iCB+KqLCajPxZmW7i6zpFK3NJ c4PmTgIgd03FRO3EtjDDmN5J0tHw7yg6fQgj3/s1h63YVCdGepjMAg5AJLiePd0zSO3X lC+xw8R6I6RNKdaLIzE9JRLiaHVfjxJw/bNBiFXgBlnVhnHqE/Pb3vFHsLLz2p2H8XZz H4rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=UP0knNuNYeninJvTCEolg7Kd5UorRlQp22Xzd4OurrE=; b=E+VQWWwdRtIYFOF9FR+yTrozZ8Jrs12nczTqwXbjzBYo4ETOg8u/7qobyFhaSiFDxD IoaO5MzQ+ol8kKpTvuIILtnp7UMBdVlxs25yCOg1yu7sQKdgcnSZVUunBV1OiquQ53Ap d8UDLcVKVvkQF8LqYEcci4C7j3IJh8YcAxQ7vc/hj2pLOivrZgsjdVxaFY/XS2whFxNK li6z+I17156T78nV/1HuBBslLMwtAlaTpEorP7UgpHRfRtz54IiX6FiKWkrGuHgqJjDl JHQG9+r5bbEe+yVHB7vKy7RUcciIaG+Cm/jgL77W/Q61pE/U7A8O9C7VGuzBGZCTLdCm z08g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HYsRW5YJ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="E+/bBYdu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 14-20020a63060e000000b0050fad5c9f36si30124436pgg.354.2023.05.02.00.41.03; Tue, 02 May 2023 00:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HYsRW5YJ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="E+/bBYdu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233665AbjEBHhr (ORCPT + 99 others); Tue, 2 May 2023 03:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233496AbjEBHhq (ORCPT ); Tue, 2 May 2023 03:37:46 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30F35E7A; Tue, 2 May 2023 00:37:45 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D93DD1F8AA; Tue, 2 May 2023 07:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683013063; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UP0knNuNYeninJvTCEolg7Kd5UorRlQp22Xzd4OurrE=; b=HYsRW5YJrHtin5rxLym6IX7TQfNmt+ofIXngnSUH2HI/PH7EF3pPA4NejxVeCpO0TV5uxM uTLlB0Pk9mOl5778ZeLfWMGGwmr4U1JQ8z8+9DWS7UcUNTqDSmxxj6luIK+UZT5FlGMikX qAx+IK5DQFKGYa2EFlcM5q40/xLfY9E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683013063; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UP0knNuNYeninJvTCEolg7Kd5UorRlQp22Xzd4OurrE=; b=E+/bBYduJz2HMnu1+Ot/b/gxOhTN20LHHN5X6QJD1JeaiTriwlwNG+3qMhA249doCPSgcp 3LpCyLh3TLGgbaCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C3A86139C3; Tue, 2 May 2023 07:37:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id e+QwL8e9UGSIFgAAMHmgww (envelope-from ); Tue, 02 May 2023 07:37:43 +0000 Message-ID: <6b03aaf5-2017-a0c9-9c84-c8ee2aa4ba0e@suse.cz> Date: Tue, 2 May 2023 09:37:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 0/2] Fix TPM 1.2 resume Content-Language: en-US To: Jarkko Sakkinen , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Jason A . Donenfeld" , Jason Gunthorpe , Jerry Snitselaar References: <20230502011558.10743-1-jarkko@kernel.org> From: Vlastimil Babka In-Reply-To: <20230502011558.10743-1-jarkko@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/2/23 03:15, Jarkko Sakkinen wrote: > During TPM 1.2 resume, the first PCR read operation used inside > tpm1_do_selftest() fails. Fix the bugs preventing resume from working. Thanks for fixing this, unfortunately I can no longer test the fix as I've got a new laptop since when I was hitting the bug on the older one. Vlastimil > v2: > * Added Jerry's reviewed-by's. > * Rebased to 865fdb08197e ("Merge tag 'input-for-v6.4-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input"). > * Mirrored patches to linux-next. > > Cc: Vlastimil Babka > Cc: Jason A. Donenfeld > Cc: Jason Gunthorpe > Cc: Jerry Snitselaar > > Link: https://lore.kernel.org/linux-integrity/CS6UJMSTVA4L.FRQ5VL1I1EF4@suppilovahvero/T/#m236d62184229cc035605143fde10933bcde60065 > Jarkko Sakkinen (2): > tpm_tis: Use tpm_chip_{start,stop} decoration inside tpm_tis_resume > tpm: Prevent hwrng from activating during resume > > drivers/char/tpm/tpm-chip.c | 4 +++ > drivers/char/tpm/tpm-interface.c | 10 ++++++++ > drivers/char/tpm/tpm_tis_core.c | 43 ++++++++++++++------------------ > include/linux/tpm.h | 1 + > 4 files changed, 34 insertions(+), 24 deletions(-) >