Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp930772pxj; Fri, 11 Jun 2021 15:51:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ9AvdWmV/IUgx2W1s5F3le9+grKyJpoBsKcpckjpIk3s5fICMuoi9Q7hwN8v0s0/Gk//B X-Received: by 2002:a17:906:49ce:: with SMTP id w14mr5658580ejv.273.1623451862458; Fri, 11 Jun 2021 15:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623451862; cv=none; d=google.com; s=arc-20160816; b=Ixss5pYh4Ie/f2C53MgI5r+s7rBH7GDuGmZrbOvE9OfLWxge1CSnBLK5BtwLtRUkpS P8JFIby/sISnS0dGj9WIWuswVBnGw/kdc8YaQiwCedGWOE0KDzcccIcmGkHepMVkWKS1 gyBeGaevVkvgf1JYdRL4XT+sX7H1wWq2P2UGjj16XHzGyRTkS0oPZdfHHspIrmXD5b1H h+MFPgU8nZ5QtizrvtUwNSUfFdFCCWhuxNiIhrfcMN9bnC+0f0oK8/yi8N2dT2gDPGoF 18+a57JlCm4wbOkHWRKvD4X30IU7/4b3UKn2TQOccxEInefxOIkUorXAOh0G2Na3H75h cXUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=rQPaBTxH6zmCmow24Ez/25u3aT/BbkT5Z3FMYjKkQD4=; b=ymzpmm7boanE18AkPVuAcwvaUDp8z2nKqOAP6pBIqVjpudG6bXLDsn6N65xn8/gEqU VAv6OBBzxEW46UhL7CYCC9vqNY4GUxvarN2GpuY4JSqN2VkL8JjR/4OOyv3A9WrrgYkx AZPsaLs2R38UIOYBMj7h3NxuIKMcAt31+t046ffiboKMHAq4nH+KdeOevT6czl9ToZ91 Ehpe2HtywSWZ9mXD89qlHdip4T02IhBiQ7rxqdXsMsVVpqJ1cFtHWRsDjrRMVmM9RFLN A8D+QQfZt3GEigfQKKWa8uw317rFPO4KoL1O0igZnpZYSO0FytDCm6vTXiKwzj+vEAMl 0AJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=foHbHgWL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh4si5548946ejb.152.2021.06.11.15.50.40; Fri, 11 Jun 2021 15:51:02 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=foHbHgWL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbhFKWub (ORCPT + 99 others); Fri, 11 Jun 2021 18:50:31 -0400 Received: from mail-io1-f44.google.com ([209.85.166.44]:43671 "EHLO mail-io1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbhFKWu3 (ORCPT ); Fri, 11 Jun 2021 18:50:29 -0400 Received: by mail-io1-f44.google.com with SMTP id k16so32775985ios.10 for ; Fri, 11 Jun 2021 15:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=rQPaBTxH6zmCmow24Ez/25u3aT/BbkT5Z3FMYjKkQD4=; b=foHbHgWLRUOeDdrUUtQo5W+xDkKSaogccxeI9Y3GB8DlJwljzOJ+Lg597umTqeTMTb fY8gJ47PnGJQo/RVPEvNf5PdZaDGNecOGl19KtekqED2TDtZX43KUTLiorhzUp/6lBt2 oz5w8QecWW942LM1RxHrObEkHehi60fovjjJM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=rQPaBTxH6zmCmow24Ez/25u3aT/BbkT5Z3FMYjKkQD4=; b=Rf8SUZluB42986WbbitpV5LImMtVR1h/hV0jPOFvQrYGYy27fGUWXlUOOP1pviD+LY hm3wsYEdNBTkKs3dsExXhocUsU6FDAYB0Hxf6cr+gMyFoBGTT2XHjYuFWypsUZsE+h+B SKtnBjLDX6JzRB2q+dlrap4LiCQ0DAwO+y/Ds47KmvRaeJL5a1HTjIgEWSJa9mLYxOAA Hmp/W0ZOhwZtrDE45+1xfrRboyE2xdDy+3jGn9vLHH2Zj7/IGqMeeHu8ZbimogRvc2pG 5fQ3EzwKGiPo2oRW/1fuBd6Wu4ylGhs8KdNr9lmA+Z2GRev9LVFCr40loYyTchHjFFSE JFNw== X-Gm-Message-State: AOAM533bCxSykxLj9LMb+DzlFT1ntiuyjpSwOgd0R6MnQbViurOdj4gV KYp+4SxyimSu7whU256JM2cT3g== X-Received: by 2002:a5d:9c88:: with SMTP id p8mr5082265iop.31.1623451651344; Fri, 11 Jun 2021 15:47:31 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id y17sm4160145ilb.60.2021.06.11.15.47.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Jun 2021 15:47:31 -0700 (PDT) Subject: Re: [PATCH v8 1/5] selftests/sgx: Rename 'eenter' and 'sgx_call_vdso' To: Dave Hansen , Jarkko Sakkinen , shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-sgx@vger.kernel.org, Reinette Chatre , Dave Hansen , linux-kernel@vger.kernel.org, Shuah Khan References: <20210610083021.392269-1-jarkko@kernel.org> <8d071d3f-604f-1876-05bb-91568dd3c563@linuxfoundation.org> From: Shuah Khan Message-ID: <6378d2a9-9f55-18f8-ce46-7ea954ac159c@linuxfoundation.org> Date: Fri, 11 Jun 2021 16:47:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <8d071d3f-604f-1876-05bb-91568dd3c563@linuxfoundation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/11/21 11:35 AM, Shuah Khan wrote: > On 6/10/21 9:45 AM, Dave Hansen wrote: >> On 6/10/21 1:30 AM, Jarkko Sakkinen wrote: >>> Rename symbols for better clarity: >>> >>> * 'eenter' might be confused for directly calling ENCLU[EENTER].  It >>> does >>>    not.  It calls into the VDSO, which actually has the EENTER >>> instruction. >>> * 'sgx_call_vdso' is *only* used for entering the enclave.  It's not >>> some >>>    generic SGX call into the VDSO. >>> >>> Signed-off-by: Jarkko Sakkinen >> >> These all look fine to me.  Feel free to add my ack on them. >> >> Since these are pure x86 selftests and the initial code went through the >> x86 maintainers, should these got through them as well?  Or, since this >> is only selftest code, should Shuah pick them up? >> > > I will queue these up for 5.14-rc1 > I almost applied these. Does this require root access, if so, please add logic to skip the test if non-root user runs it. Please check for code paths that require root access and skip the tests. thanks, -- Shuah