Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5015867ybv; Wed, 26 Feb 2020 07:02:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxupGJ10dbREZWVGJU1kLuSDbZGISB3prt8wrH24+xT97YcoN8zvA00H2KDd5voOjzmF8BN X-Received: by 2002:a05:6830:1643:: with SMTP id h3mr3273012otr.70.1582729327454; Wed, 26 Feb 2020 07:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582729327; cv=none; d=google.com; s=arc-20160816; b=c0TEPgW2vncg1D9aOzvQySImCDOk9bzYhd65y/k9bGYJV44LehYMInoMgULc/yNrJw Xo/xisxBobVyQCGhiMzHEx8pdTPxyuUTmf05EdZvSs+QBTe688RuCvkaUt8XJZpFcAVF r/EDhDUt00eLRPKvNyD8T5t2pN0ROVbOJiYbEz38xPeN4OZjb0i4LAdXs19AyWQ4HXzZ +sZtDNCN0M7KUh3RkQkqpZ5RilAPI+ujDM+f/QBf0Sg3GmkxNMnqaEdB5sRIc7fltYtn vbkGKmjBizYDDbbs9Iq6eKrPskywx8ih9LTX0VF0CLBoOXzfgLuJDIs44trCVm1zgfHJ Le5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YXloVyn39Y5SzHv9On4v2VkGaNOaN4gzd75Q14BrrMI=; b=zPl73RdYCPRGv+J1BbdGqPXwx45pLdJn2wJoUFg/215XC9cQzOKXdka+K8HqGtk7ub dBuczYDF7U2Yse/oC6iLlcZQrrfXFTKXgskUmq0RH04CEuwlCV9H+QbC1o7vCSHBqzCn B9ON7wq8VLbYnqht1kq8XSHcWe5qstBRfLz3KWc/qZn1h/zWZ6L8KLScN5gx+jXUO7j1 uwmOLRdKIvmuwC3vKukLMpLqMCLl+0nEcdcd1qVXmgq81vm2nWZUdzgBaDTig66zf+n4 j9cEMkJxwzDTtKuDUFJeu3cR8T7p213GRQNRArOc/e8kS35exQzUTnTQb81fkI9mE+Xd Rddw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si1155093oic.136.2020.02.26.07.01.53; Wed, 26 Feb 2020 07:02:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbgBZPAz (ORCPT + 99 others); Wed, 26 Feb 2020 10:00:55 -0500 Received: from mga04.intel.com ([192.55.52.120]:30051 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727468AbgBZPAz (ORCPT ); Wed, 26 Feb 2020 10:00:55 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 07:00:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,488,1574150400"; d="scan'208";a="231425508" Received: from avgorshk-mobl.ccr.corp.intel.com (HELO localhost) ([10.252.15.208]) by orsmga008.jf.intel.com with ESMTP; 26 Feb 2020 07:00:51 -0800 Date: Wed, 26 Feb 2020 17:00:51 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: Stefan Berger , linux-integrity@vger.kernel.org, aik@ozlabs.ru, david@gibson.dropbear.id.au, linux-kernel@vger.kernel.org, nayna@linux.vnet.ibm.com, gcwilson@linux.ibm.com, jgg@ziepe.ca Subject: Re: [PATCH v2 2/4] tpm: ibmvtpm: Wait for buffer to be set before proceeding Message-ID: <20200226150051.GA3407@linux.intel.com> References: <20200213202329.898607-1-stefanb@linux.vnet.ibm.com> <20200213202329.898607-3-stefanb@linux.vnet.ibm.com> <20200225165744.GD15662@linux.intel.com> <8b61d1b4-8503-88e7-271f-da2ea0fc437f@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b61d1b4-8503-88e7-271f-da2ea0fc437f@linux.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 25, 2020 at 01:14:32PM -0500, Stefan Berger wrote: > On 2/25/20 11:57 AM, Jarkko Sakkinen wrote: > > On Thu, Feb 13, 2020 at 03:23:27PM -0500, Stefan Berger wrote: > > > From: Stefan Berger > > > > > > Synchronize with the results from the CRQs before continuing with > > > the initialization. This avoids trying to send TPM commands while > > > the rtce buffer has not been allocated, yet. > > What is CRQ anyway an acronym of? > > Command request queue. > > > > > > > This patch fixes an existing race condition that may occurr if the > > > hypervisor does not quickly respond to the VTPM_GET_RTCE_BUFFER_SIZE > > > request sent during initialization and therefore the ibmvtpm->rtce_buf > > > has not been allocated at the time the first TPM command is sent. > > If it fixes a race condition, why doesn't it have a fixes tag? > > Which commit should I mention? The one that introduced the race condition if there is such. /Jarkko