Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1025993rwd; Wed, 31 May 2023 08:30:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rUiit8oGQhKJXeLFOe9VkZrnnhsPhAIG5DMIMjB9SqpiW+tW+779i6m7amWm4xti/QNmF X-Received: by 2002:a17:902:d4c3:b0:1b0:348f:c48c with SMTP id o3-20020a170902d4c300b001b0348fc48cmr5444789plg.2.1685547041657; Wed, 31 May 2023 08:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685547041; cv=none; d=google.com; s=arc-20160816; b=ihhQFMxmzu8MNkdlqeFo5KeCRFuPQZgQbOCYZUFhf2DdV69PnPwgFq5ENnqfI/FZQ7 CQyn/H2LbPHiPtb1V1voveaeZ6NBBU5YWu/w6GvwjFcf0FmHuNJjRE8uNd9C7zF1dAFJ Yimm0fZkxwzJx3ojZKC1ctdPLxqHb4l0bswpZNPKZjkc8lOMj6lOsHv+Lbp/p0/nX/Mc jKGZvo3rRWugZCXvcLW7I2PMrJAltCkL0UmgWcZVPE1z4o9Po9YSUiggSbvmvoTt8xFc NzYMcrqgqX77Xin2ZEGuQOUqEC7W5oUrassbcOJ9Xwn9s0WDKmiUuV/iET3BO6Z/j4sY 1tEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oEEcKiFgY9vra52CwE7tjULdms9UfcoallSLp2b3u8o=; b=n4GFpTJjGPa6B96a/55lMrIdgTHbkRQwqu5JMHsUOHt9vAWuu8Zi0Wic3QX2k4x9eO jTBgDovQOD0f/vak+uQ3X2LAxqMa/ev1Tdqtf3YvTta7MENvjAuFWtAGs/osCW/7bKf3 /nPSME4d2Trgp0hSNkwsVDi+khnBLWuU1tF7yxNhl8DGt3PytgHO3cJ4KIZQ1qfgyThB hb0zkuQz3nadP7zHKqxkoZvkJ1rsu0v5kq07cjFaMPWuH7QX2gcxIkUeE0Sv5ZOvllS6 qUNCo1HBgMoN2Z2p01yCqWp3m/llDs9FWTTNX7BZ79dkB1YzBMNmRwRVNvaSjFLirgXe EbGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=bwl0FPHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170903244500b001a920be2722si1017856pls.610.2023.05.31.08.30.28; Wed, 31 May 2023 08:30:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=bwl0FPHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234375AbjEaPU7 (ORCPT + 99 others); Wed, 31 May 2023 11:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234376AbjEaPUq (ORCPT ); Wed, 31 May 2023 11:20:46 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFBCEC0; Wed, 31 May 2023 08:20:45 -0700 (PDT) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34VFAMQ9016533; Wed, 31 May 2023 15:20:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=oEEcKiFgY9vra52CwE7tjULdms9UfcoallSLp2b3u8o=; b=bwl0FPHM/4ntUomgRjHM3WD4YDk93aTNRmJMsc3qO3MoHC1jVlLdH6dcaOG4XjTCSPp1 yoeAQwE4gxcH1m2MbEi0E+chMugn4sJFs0ALtqGWuk2Rf8BB9uK1eNabCl4MbSE4CYuO g3OS6lkDm4xRSsJvFCtsZ4B0pGVAcC421dduJC0V3raF1q4x2BGZb3/QpEudH4q024Bt MAGMCzJxK+dbDLgFkUgL2YM3ncmBFjUrz2fwcck+TQWDeQQOVkfRqaT4Ze0YAdBPDkSg 6Yy3oE8KDn1KdgTcQxIunWsKNHoZbyNWrlNIbK+IjxYhyB/AmOP7It5irqWJZGdVzfW+ gw== Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qx88f1duv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 15:20:34 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34VEA7xP016838; Wed, 31 May 2023 15:20:32 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([9.208.129.117]) by ppma04dal.us.ibm.com (PPS) with ESMTPS id 3qu9g6qch2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 May 2023 15:20:32 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34VFKVRg7996012 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 May 2023 15:20:31 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 67F6A58055; Wed, 31 May 2023 15:20:31 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9FB915804B; Wed, 31 May 2023 15:20:30 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 31 May 2023 15:20:30 +0000 (GMT) Message-ID: <8f15feb5-7c6e-5a16-d9b4-008b7b45b01a@linux.ibm.com> Date: Wed, 31 May 2023 11:20:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] tpm: factor out the user space mm from tpm_vtpm_set_locality() Content-Language: en-US To: Jarkko Sakkinen , linux-integrity@vger.kernel.org Cc: Jason Gunthorpe , Alejandro Cabrera , Jarkko Sakkinen , stable@vger.kernel.org, Stefan Berger , linux-kernel@vger.kernel.org References: <20230530205001.1302975-1-jarkko@kernel.org> From: Stefan Berger In-Reply-To: <20230530205001.1302975-1-jarkko@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: stsieOlycXYqpPzetXMRnHjT128JFlko X-Proofpoint-ORIG-GUID: stsieOlycXYqpPzetXMRnHjT128JFlko X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-31_10,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 suspectscore=0 mlxlogscore=709 spamscore=0 impostorscore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305310128 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/23 16:50, Jarkko Sakkinen wrote: > From: Jarkko Sakkinen > > vtpm_proxy_fops_set_locality() causes kernel buffers to be passed to > copy_from_user() and copy_to_user(). And what is the problem with that? Is it not working? > > Factor out the crippled code away with help of an internal API for > managing struct proxy_dev instances. What is crippled code? Stefan