Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3899381ybv; Tue, 25 Feb 2020 09:16:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwiMe2grE6n3tAysXw3LZ+2+hIh2FwyI0hNT6q6mbt9LyY1MXHBVWzFEY4F4KW1+hTxw28L X-Received: by 2002:a54:4790:: with SMTP id o16mr33306oic.14.1582650978985; Tue, 25 Feb 2020 09:16:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582650978; cv=none; d=google.com; s=arc-20160816; b=u/ZUscyMBpJgiWEnvv5zsX6InCPZSEN9XpI5o4uZLja8glFg1CtEvVWjPD7JB0C/kw cd4uwDtqOOz2tZ6cGqxtBz2X2mh1hH+MZJhjMde4qvyZ3DjAMZsVspFAfMTPx1GewVxk KsRxcGm9XeAQ3g+nPOue5VI65aXHg7L5Apaenps51bN3iVJZ3b9akZ9A+a2MIzeNYl78 O0JUVehYqtKXyzcK9taeQKZMFi1XRDfMCjkKY/sLiIE1QKKoSM9qpejJKItnXXRHQhyk 7APuR9pRt4kLHzSi+noU+R50pTTBcGEeOoz0srptwpMM3gWkHNgU8REHlsmrPRJEYBAt eVgw== 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=JneC46lHWibAjxGx0jvrXYrvIaNxuxSQIm1ijH+vDAs=; b=RW/NCZUfzF/z432AMZTnI1WHANRSeaoRDJIZzeiPe1B7pvJjoILbotmzsuUuJ8Pjqa bn3PYuDjN08huhMDTdjgAhyxwaViNUbWjL3SCKzjBAglzRwftq2UilcKodtoR8+Cy9O5 9f3ZJcYqRbbwh3sAitUOKNIjMxT28AkUuwvVErX+oHRuxClVs6uHFqAU8Oio0YPelu7w lhMp0RcWeEPFGolL7KPOyUPTeN29jJuPwexCvC/tQ2IHscBuzqXNWZfEu6ell/aQpSdd 6mbDY7hbsFtjs6pUuiJM/rhFr3l6siIQRWsBnc8Z9PUbjgSEtnkSUD18lj18MOOWwj/F TmAw== 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 v11si8505991otp.279.2020.02.25.09.16.06; Tue, 25 Feb 2020 09:16:18 -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 S1731046AbgBYQ5t (ORCPT + 99 others); Tue, 25 Feb 2020 11:57:49 -0500 Received: from mga09.intel.com ([134.134.136.24]:17264 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbgBYQ5t (ORCPT ); Tue, 25 Feb 2020 11:57:49 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 08:57:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,484,1574150400"; d="scan'208";a="438125640" Received: from gbwalsh-mobl6.ger.corp.intel.com (HELO localhost) ([10.252.26.72]) by fmsmga006.fm.intel.com with ESMTP; 25 Feb 2020 08:57:45 -0800 Date: Tue, 25 Feb 2020 18:57:44 +0200 From: Jarkko Sakkinen To: Stefan Berger Cc: 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, Stefan Berger Subject: Re: [PATCH v2 2/4] tpm: ibmvtpm: Wait for buffer to be set before proceeding Message-ID: <20200225165744.GD15662@linux.intel.com> References: <20200213202329.898607-1-stefanb@linux.vnet.ibm.com> <20200213202329.898607-3-stefanb@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200213202329.898607-3-stefanb@linux.vnet.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 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? > 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? /Jarkko