Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1760564rwb; Sun, 14 Aug 2022 11:29:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR5l5eyBG8g6AhPCeeY/Tla9iN+sgqalndcA92EeKAatOFl3BPnKTfdcpovBGyvTFzXOysji X-Received: by 2002:a05:6402:26c2:b0:43d:d885:451a with SMTP id x2-20020a05640226c200b0043dd885451amr11691058edd.287.1660501789335; Sun, 14 Aug 2022 11:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660501789; cv=none; d=google.com; s=arc-20160816; b=CEKzqn+33jU+TcEerzx90o5ZmJr/mqHCqDeV0ijuwg0rif2WBUQ3y7QxEGi41ItrN+ 8tXmOPbmkz/cwluJNH6/SakKTKmvdeanxNDwGqZankJUpxaxl59TtzlTRSpZSlQU95mT sYDe3OYgadrgQnlloYE3WjniKvNlfXAx4uwMeSjsgHByHCxEG+gWlNkpDn+nhZSU1Aqb nG7kW5FIZfV2kw1R8knQef0a+3SlqaOkFXoQ8bNOeRiBWSCE0B8Ss69e36gZnLLXUB7/ M1dMeq87DvOx7rS65yOGBZkAVXxmZpsEwfgORZ31sP4N5u9Yo+sQ69HXOzbcuim92iHV Uiuw== 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=fISG3isQTrWuMIdmUXL9iplIa1HjB23mcjXfZV73SGU=; b=RCEsFQ0oIMQ/IlJc1EdnAxV79G9OOulPTle1qQYgOT5YY4RIWMqbqRG1j+5YP0FkrA hrx/6VldHTV04O4mhovN3zH24yTr1K7BZdOPBvW38iBSZpAwXtcMncB8Ka3awaTSlz3A w7bLxXG+ISUBV+2B+ZC4BCdQ6edbTwJqQZJUAztkOkFq/AJYncG97tcZK3Cov3NTDJFz csyk/wWqo4tK91FEVOk/Kf0PrvVEPsC6x3LA4MvQYnTrbfAPH265s+0iuf5XIA/FDocb uImGZcERSx47Lr30Ij++D1BKsFspdvfqSMIunHF9u1VqSreFhw4A40lbh88rRuCqD/jV 0ZUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="U0G/IUM2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a05640206ca00b0043be4e916b3si5646850edy.126.2022.08.14.11.29.22; Sun, 14 Aug 2022 11:29:49 -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=@kernel.org header.s=k20201202 header.b="U0G/IUM2"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239901AbiHNR7T (ORCPT + 99 others); Sun, 14 Aug 2022 13:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiHNR7S (ORCPT ); Sun, 14 Aug 2022 13:59:18 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4AA23BE7; Sun, 14 Aug 2022 10:59:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id C3253CE0B6B; Sun, 14 Aug 2022 17:59:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD92AC433C1; Sun, 14 Aug 2022 17:59:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660499954; bh=WUnkyF/jNFURTckY2gWMqvZYLn4P0jY1yB4UNrr5PG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U0G/IUM2CzBKuMP32GF2DT+SpuIncGNSM+suuHYblDIDY2fPihRaurMmpVkUZvngp S74HNwTNETAdQS9b3P++XwJUBRZ8ROSQURUoXwhKxW3TSAxkhRPkiQbxydz5nlYg8a BBtUqhH1dWa6TdIWyk6qRcxsvr3Snx+xh6fEaubt8oYZx8/evaW/vV7Mv9r2u9bagU blTyOdDObZPQaZck18EqfU5hR+q0b5O1dXaCCvmfMAfDP5eXhpp5rH3cHwFtzjeuZC VY7I+VPpMfR1KywGhWKk+WPzWRO4ug8kTVen4NcY3dYETebpxiyKypFE8TPkxvEuoD vSF6PvlXaKYow== Date: Sun, 14 Aug 2022 20:59:10 +0300 From: Jarkko Sakkinen To: Sven van Ashbrook Cc: Peter Huewe , Jason Gunthorpe , Hao Wu , Yi Chou , Andrey Pronin , James Morris , stable@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tpm: fix potential race condition in suspend/resume Message-ID: References: <20220809193921.544546-1-svenva@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Thu, Aug 11, 2022 at 09:09:38AM -0400, Sven van Ashbrook wrote: > On Thu, Aug 11, 2022 at 1:02 AM Jarkko Sakkinen wrote: > > > > What about adding TPM_CHIP_FLAG_SUSPENDED instead? > > Thank you for the feedback, Jarkko. After thinking this over, I > believe this patch only moves kernel warnings around. Will re-post > soon with a fresh approach, intended to fix the underlying issue > rather than the symptom. > > So please disregard this patch. np BR, Jarkko