Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp873133imm; Wed, 19 Sep 2018 08:14:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbAIps6p+bfwCakNNNb1jQlgspwv+Y3sjbCg/LBRTCO4fYCKBUfX2HuvyqS0hbw4Ni/pbXF X-Received: by 2002:a65:6654:: with SMTP id z20-v6mr32974118pgv.186.1537370045933; Wed, 19 Sep 2018 08:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537370045; cv=none; d=google.com; s=arc-20160816; b=swTm6dnbrXB+hj1jxO38xxRTtscjtNI9Hqa3Eg9ZmYfeSW69smGUR5rOmG0AghXyIj 1CQNRaJjuujx+J3OVqMoRrxZlkArb1w21itWhDfweXxndikdKJCwRacoxDT7+99lA4l4 x8mZRCFeXpbv2iMXqqcF1dofcxBG3bgEaeIthEM2mQG7cna+nYCB7Zaw7hWH+WoCHtgr v351wfO/TTZq8vVVobIZhKoQ+VZiM87JH1zSK7JO5Aa1k1ns9EJvLtKvNodNSzdVNOqJ ZtRrlIQ+bFVQDgFcy16+dnVYOdxy16oQmAgwiVdlDsM06tUi8m6YPN1XyEO+w5ox45hU wWmg== 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=IaWC29l/vVzr8uw7KhK0zvWYBgjHbTLmfD6GtFnK9Wc=; b=dvbLn7/JTEuZEYL68kvhX4N3TnOtwv2D2Mj7Wb4j0WQdt90dUdV/2XQMqhP8JdkHGa RImk5LfIp+7h0Tr+fnw3gOihfo3ebFX/gaPyD8dmR4I0WM2HgxC6zgEXQS3wo5SHtErM 3YMkBWmG99sDVfcBggDRQ1JjDlQzRw/lfJGfMFvxo1SVdjzxsnZNrYD85Xik11Lv0jEl /Jqqv6RHOPCcwQwqVKp+llUmpMZdVkbgd7zcLq8omG4rUa2ksjXPOBieXAThFkr7pAaU mPu5vLiFKddW1D0CtrqnIApblH0gDfP+UFHqmLkFuGmyE+niezQzswTCsslfHa8K20Zk x/UQ== 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 h11-v6si23646636plk.141.2018.09.19.08.13.49; Wed, 19 Sep 2018 08:14:05 -0700 (PDT) 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 S1732405AbeISUv2 (ORCPT + 99 others); Wed, 19 Sep 2018 16:51:28 -0400 Received: from mga11.intel.com ([192.55.52.93]:3473 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731266AbeISUv1 (ORCPT ); Wed, 19 Sep 2018 16:51:27 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 08:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,394,1531810800"; d="scan'208";a="87511885" Received: from pqueiros-mobl.ger.corp.intel.com (HELO localhost) ([10.249.37.13]) by fmsmga002.fm.intel.com with ESMTP; 19 Sep 2018 08:12:58 -0700 Date: Wed, 19 Sep 2018 18:12:57 +0300 From: Jarkko Sakkinen To: Tomas Winkler Cc: Jason Gunthorpe , Alexander Usyskin , Tadeusz Struk , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 16/20] tpm: tpm1: rewrite tpm1_get_random() using tpm_buf structure Message-ID: <20180919151257.GI31076@linux.intel.com> References: <20180918093459.19165-1-tomas.winkler@intel.com> <20180918093459.19165-17-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180918093459.19165-17-tomas.winkler@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 12:34:55PM +0300, Tomas Winkler wrote: > 1. Use tpm_buf in tpm1_get_random() > 2. Fix comment in tpm_get_random() so it is clear that > the function is expected to return number of random bytes. > > Signed-off-by: Tomas Winkler Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen /Jarkko