Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp318710ybn; Tue, 1 Oct 2019 21:43:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWfEg+OXE9nAu6Y4jbcWECah/uKUFvaDNVUZ3SwMxAzkUzAz0AJzZOPuVDSqGwnObYl3bQ X-Received: by 2002:a50:d084:: with SMTP id v4mr1841214edd.48.1569991410058; Tue, 01 Oct 2019 21:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569991410; cv=none; d=google.com; s=arc-20160816; b=A9Ww9ilWIc9Uvg6YXjjByW1RKbx4VBJzumTWeTinZlJ+/z7y0z+C5N9OUBEhrSfyFZ jcNmliVorfLemnaZmXlsU43dYEXOD/hcavcBVpXFAr+KQmBgXdV8OsfTqIdiLUbfF2ek 9KL826lJbOFLHMJtW6T3wOyQ4UgLKcsREmdBE3CFOYp2UJrbVRNXnm3TcohSOGb/voUW x4ZtpBgCck9IwwnHbPZB/JmZMjJ4cfbnwXji6IPHa9XmM7nH1bkUEdNXMYtmHQqoSqKC 3lFzPWg12ZVavWrTiV1YA+HsZAq24sH8OgOYsOhsnhajO6eGbITbnUVPcrRu2fqT+qZv wquQ== 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:to :from:date; bh=lcQVdjU+t/I6gCre/5isoYv8OOCszEMeeS4phdjnDX0=; b=kFJkwH1tbKSXp/VdJeYao6VmoKuNeyFN+x+BF/RgazG31zY3i839o95eXXjj6F9Nl8 FSH3RSlUOKSoYydq6ik5PuEHMS79KdzxZOXY9VHNP9rq5Od6iivzKJeTYPgmdrsGQ5Vj +1/EvrYEW+7/TNm5+WdnsJ+jGreioSssP6GtH3ozf3JL2S//egDLTZIXkFZ8VReh5mH6 Y7JGvWg+uDs5jC5Q+2nZhhAf4tP2CCJzMyVsKYXr5m+fd/0eVOSdmVm9+m7nWI0b7nRD jch4kOdOxC2UyqublT9YXErOUHttPJhBfTJMwbyii1B7kZFL1fVZrR4BS3ovekv9WN47 eCPQ== 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 ot22si7617305ejb.153.2019.10.01.21.43.05; Tue, 01 Oct 2019 21:43:30 -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 S1727429AbfJAUv6 (ORCPT + 99 others); Tue, 1 Oct 2019 16:51:58 -0400 Received: from mga14.intel.com ([192.55.52.115]:8396 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfJAUv5 (ORCPT ); Tue, 1 Oct 2019 16:51:57 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2019 13:51:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,571,1559545200"; d="scan'208";a="343106358" Received: from nbaca1-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.37.57]) by orsmga004.jf.intel.com with ESMTP; 01 Oct 2019 13:51:51 -0700 Date: Tue, 1 Oct 2019 23:51:50 +0300 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org, Mimi Zohar , James Bottomley , Sumit Garg , Stefan Berger , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , open list Subject: Re: [PATCH] tpm: Detach page allocation from tpm_buf Message-ID: <20191001205150.GA26709@linux.intel.com> References: <20190926172324.3405-1-jarkko.sakkinen@linux.intel.com> <20190928075813.nsmu3g7derj2fjmj@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190928075813.nsmu3g7derj2fjmj@cantor> 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 Sat, Sep 28, 2019 at 12:58:13AM -0700, Jerry Snitselaar wrote: > TPM2_CC_GET_RANDOM Ugh, I somehow sent v1 2nd time also in terms of contents (was fixed in v2). I think it would be a great idea to add call to tpm_get_random() to the chip startup as an additional test. > Would this work here? > > err = total ? total : -EIO; > out: > kunmap(data_page); > __free_page(data_page); > return err; I'd guess but I want to keep this commit as dumbed down and mechanical as possible given the amount of changes. /Jarkko