Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1180748ybp; Fri, 4 Oct 2019 10:39:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYhJrqeywQ7tdTFgDp5gZFDszvEFKonan9rnegfGlercQ183q7r4HoU627EenanuLjf14v X-Received: by 2002:aa7:c657:: with SMTP id z23mr16600208edr.234.1570210750341; Fri, 04 Oct 2019 10:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570210750; cv=none; d=google.com; s=arc-20160816; b=L9/EIa8d2/R9KjM7KSDcf+D0c0upplnvMWLaSQuCon1XnKa+Rf9OxS9m+1Wg/YV1tu a0NgcS24hR0AvLAmEdBnnH5mdHwxoP+lEmgIqppHwntQl70QNMAAO0eqEYY2hwZMEQxQ eSGs/gq8wyhNnDI4WZ9s9RnYUVdp7mdp8Oaa7Zie5Ibr7wXVmkYOjLNSV9ScClUtC7VY drjUiX7GtkUGbtAxxduRPkJ4pjBz+v8q3TUiY5sbmBZROP3eDLhxO8GFX2EbfuAmXtTr R1VOxC/dB2zBTFxxlcuaXSOzF3tHYR3RoBaFvvDG0R2CzIYmlEWuLXtt9v31CSiB1z+8 OWRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=aDPAidz42xoW+kA7EM68BDIDTZq26S0pp9dYYvf6e9E=; b=e0AquEdowpOQJ6bXeoQshCFNO0P6cN24lsqhNJpVC9Yd8TyfRvENznw/Lh4dnSCqFE ClvCthVbwzqQD28byYQb0jr4ebndhGXeBX9TZ5ZsZ8zz9D9Q91+rx32/qaQZNExcNllk cGG3KokpoyvZLo6CdxWJ4kW0tYtr7KmTe4ZamCRkokoJGah1YtP0MSK81UFuNURFa90n QgL87lCJssZWS3oi7Z9guKXZmTWgV0YhR2KuP+5JVKP3xsKzcI2dkw94mnwKS1utAcEY LYXfQdpL78QojFf1YgCIaiS8CVotbFVN4Mqov2EimNKt5uiSg9bycm04+J7f+vutEVX0 3zXA== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si3926582edv.35.2019.10.04.10.38.46; Fri, 04 Oct 2019 10:39:10 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388270AbfJDRhh (ORCPT + 99 others); Fri, 4 Oct 2019 13:37:37 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:20982 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387428AbfJDRhg (ORCPT ); Fri, 4 Oct 2019 13:37:36 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x94HW1Ww140861 for ; Fri, 4 Oct 2019 13:37:36 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ve9k4te0q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 04 Oct 2019 13:37:35 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 Oct 2019 18:37:33 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 4 Oct 2019 18:37:30 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x94HbT3f45547756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Oct 2019 17:37:29 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C19645204E; Fri, 4 Oct 2019 17:37:29 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.197.95]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 7B8A752050; Fri, 4 Oct 2019 17:37:28 +0000 (GMT) Subject: Re: [PATCH v3 2/2] tpm: Detach page allocation from tpm_buf From: Mimi Zohar To: James Bottomley , Jarkko Sakkinen , linux-integrity@vger.kernel.org Cc: Jerry Snitselaar , Sumit Garg , Stefan Berger , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , open list Date: Fri, 04 Oct 2019 13:37:27 -0400 In-Reply-To: <1570207062.3563.17.camel@HansenPartnership.com> References: <20191003185103.26347-1-jarkko.sakkinen@linux.intel.com> <20191003185103.26347-3-jarkko.sakkinen@linux.intel.com> <1570207062.3563.17.camel@HansenPartnership.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19100417-0016-0000-0000-000002B41761 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19100417-0017-0000-0000-00003315282D Message-Id: <1570210647.5046.78.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-04_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=893 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910040148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-10-04 at 09:37 -0700, James Bottomley wrote: > On Thu, 2019-10-03 at 21:51 +0300, Jarkko Sakkinen wrote: > > As has been seen recently, binding the buffer allocation and tpm_buf > > together is sometimes far from optimal. > > Can you elaborate on this a bit more? I must have missed the > discussion. Refer to e13cd21ffd50 ("tpm: Wrap the buffer from the caller to tpm_buf in tpm_send()") for the details. Mimi