Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2812450ybt; Fri, 3 Jul 2020 20:56:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqCsyif+++8oodm2kYsCx2VeckbgCOYl2Uz0AS+unBrL5QxoBvw6EdlssmvPpDOsS0ENiH X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr30165410edx.316.1593835011389; Fri, 03 Jul 2020 20:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593835011; cv=none; d=google.com; s=arc-20160816; b=RFSSRGEXhZKUCyFG/XcNRTyxOQSPpoptx5UvgZyNo3ZspJqaZo5j7AoLBuBdxxz++8 bB0529W6ME9fIzXCS2yZgFUN+5MZkoevmHWtWIcYtyON3Go/APTbJoHNSOPwX0kmzI4/ i0P6lEOzPaGJgp+XZagn22Tqgfb0a+C9OrDVehRUvJQkwkXn3h//tEsc5FEsBzH5uqZl WeOEq/eNAeYshp4MICOVed5qdrhHTaa3/fljLoaKjOQn7srGVY1Mr8gsC9TEnbB0zuxO Zz7gaEhXDri3Ke69m6/2adnnuIjAJewLh9d2VZJAwO0HyEz+U3u2ej/wxuapBmylTKWK oZ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:ironport-sdr:ironport-sdr; bh=o6vgEC9sSfZh1cCuUnAirLPJIB8nVQSxOqxAXFLphVY=; b=J+qtdtocrjepw75Q3JetiHJeWSix7zoaNdcaVnyMNVx9w3+81T47JMzlWd0/cJNWRI 9Hp47f2+OdyZLbExxujQsg/+weU+okllAGqdBhJOQub3S/j9gjm2VFQaZhIK0cfyWfmv Zl5cfP8sxSgaESqNQr9z0H9GJUYMIDUjiADAh1hIMsYIWhKYBhVKoXCt8ci19Zw+g29z 7K2Y0vgrcpmA3H3JVfKHt4PQ+3Cn148mT9F218QULDlab4WFB84oX4+n2gxFadx4Mg4p h5YBGleaFL1VFdJvT9mke2LKZnzsi9/YgvwVd4svnb1XvRyqvhC50UhbTlgGkGeG0uSa MeUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m10si9049339eja.377.2020.07.03.20.56.26; Fri, 03 Jul 2020 20:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726941AbgGDD4W (ORCPT + 99 others); Fri, 3 Jul 2020 23:56:22 -0400 Received: from mga12.intel.com ([192.55.52.136]:33191 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgGDD4W (ORCPT ); Fri, 3 Jul 2020 23:56:22 -0400 IronPort-SDR: O3p4wEfQzumhmv3KdSmawxJEMBSoq2BcHv8z81y4eFTJwO1WD535GMfivP0J0KwjtPOA0owLX0 trit3OUL9/lQ== X-IronPort-AV: E=McAfee;i="6000,8403,9671"; a="126832378" X-IronPort-AV: E=Sophos;i="5.75,310,1589266800"; d="scan'208";a="126832378" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2020 20:56:22 -0700 IronPort-SDR: 4PwYMQsrwNKt0BQPWVg2aGZznq/PxOskNpz4IIfdAj5DpKcAAMPW5zB39K6lzbhTOP93kc7JME /buUEOwb4mYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,310,1589266800"; d="scan'208";a="267454037" Received: from winzenbu-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.41.221]) by fmsmga008.fm.intel.com with ESMTP; 03 Jul 2020 20:56:17 -0700 Date: Sat, 4 Jul 2020 06:56:15 +0300 From: Jarkko Sakkinen To: linux-integrity@vger.kernel.org, Stefan Berger , stable@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Sumit Garg , Alexey Klimov , James Bottomley , open list Subject: Re: [PATCH] tpm: Define TPM2_SPACE_BUFFER_SIZE to replace the use of PAGE_SIZE Message-ID: <20200704035615.GA157149@linux.intel.com> References: <20200702225603.293122-1-jarkko.sakkinen@linux.intel.com> <20200702235544.4o7dbgvlq3br2x7e@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200702235544.4o7dbgvlq3br2x7e@cantor> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 04:55:44PM -0700, Jerry Snitselaar wrote: > On Fri Jul 03 20, Jarkko Sakkinen wrote: > > The size of the buffers for storing context's and sessions can vary from > > arch to arch as PAGE_SIZE can be anything between 4 kB and 256 kB (the > > maximum for PPC64). Define a fixed buffer size set to 16 kB. This should be > > enough for most use with three handles (that is how many we allow at the > > moment). Parametrize the buffer size while doing this, so that it is easier > > to revisit this later on if required. > > > > Reported-by: Stefan Berger > > Cc: stable@vger.kernel.org > > Fixes: 745b361e989a ("tpm: infrastructure for TPM spaces") > > Signed-off-by: Jarkko Sakkinen > > Reviewed-by: Jerry Snitselaar Thank you. Now only needs tested-by from Stefan. /Jarkko