Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1667985pxy; Thu, 29 Apr 2021 11:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMGTVmfGD7zOF5VJ2DfOgTNC5hdKrLlm+qQvwE7VVBPyUviX8p0TkzNnYvjeaCn7PVw4G4 X-Received: by 2002:a17:90b:1184:: with SMTP id gk4mr11308644pjb.129.1619721746437; Thu, 29 Apr 2021 11:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619721746; cv=none; d=google.com; s=arc-20160816; b=m2Dpz7vZc+X2A7JQJJZmzL/ylCtkzMISXRMEdfMyhBUdK3RGLbp9gjUShZtQxOMBNL kh0MsibwVe3nlrF8GVbyRtPOq2nF0fx1dzqMN511EdHCDkKYGm1NLD+3DpFAjp3hH551 JEph6oesVogkPDiAEWwWjT8hrfW1nWkur9rW4Tq9y7HJUG3tX1q50AqHRcH6PnqB0RFw KEXZzFpePnP2KJrPrvJIIypu2yaJ0084qu8rSw+1XSkf9Ti9O5SaaB80UfjIREmoBaV8 l2v08wmGFXl9ZLbuPOJqljMAlPI0nt3nufeZCSoeIm7yPDdLIZWRy2qZMYbSX6l0uw/X Akgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=6ISdJhxPA0Q81HhhbPQowkOtokNi1L68q+uJq16mjrQ=; b=MZzcVxoFZigEwrrnJPzgjXjp0nPL1D00+c8fVu5ZYbiNiWe0xRfKA/Q1bNkC19sb8n eFs2X1a5A3lw7RW/hHnaBxPl5JYHq/sUNQggUvG6GuS2uH1noBLPNO4vOROXzlhOoV6q pITHBRy3mqrXa9Qln6qXHzJge7RiNEkB/WkoZsXROGuxpqwjIgkoeFiHFGf9+85kEcD5 wpy9egQ3oxKB02vI2TZtWxKyJ8lpy/tQuX+Mp0oOpqMGtRGwKirg5HwHpZqpbHaoiE9B 3zV6/P9gPtMTSNRQwuZUqzvJ+tBeum3JR7lJ22QQ3GNg/uBGvoFE4BeT5CgHcNuhFK4I KTqA== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si3944423pfa.212.2021.04.29.11.42.12; Thu, 29 Apr 2021 11:42:26 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241197AbhD2Skz (ORCPT + 99 others); Thu, 29 Apr 2021 14:40:55 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59817 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241205AbhD2Sky (ORCPT ); Thu, 29 Apr 2021 14:40:54 -0400 Received: from mail-pl1-f199.google.com ([209.85.214.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lcBa2-0001uY-I1 for linux-kernel@vger.kernel.org; Thu, 29 Apr 2021 18:40:06 +0000 Received: by mail-pl1-f199.google.com with SMTP id 70-20020a170902044cb02900ed8431f861so2004119ple.5 for ; Thu, 29 Apr 2021 11:40:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6ISdJhxPA0Q81HhhbPQowkOtokNi1L68q+uJq16mjrQ=; b=S+D9ZE1MQFYDcdZMtmh4n1LNe5XPvtPZG+TtRWyohK1l1CeoW2r1QGPNksJ7lLcZ6I o5MkQBrps7ZDJGIU7HvR3d26ugK2q16/0j5eZMuREVYoot+Rm0sQlH7pB+G+P7ATUAKr CkjEJQOy0m/L/bTN6NdAIZofyS25qfAodWhW8HpDdLJWNXLPLrkesiWwrSvni4bbZhBP 2m9pPeLTB3cR6tcedQvnwTr9M8tcqBaaHODC16fKNSc92cZw6AMcWKjUiHcfRfFEq7YF I0CbdliWHdAX356DgdKaERvfAP2sR++p62DMP+MQYR7fFcczeDRUNF556ka6xP+N/ws0 Lhkg== X-Gm-Message-State: AOAM5326h7nrVPI8/f0MQ2j+vWz+6cY9CXYS+3OO9Qf8JnOMktg0QeZG 1IOg4XRy+Fxb0dc8dnTswpG6mYNuIqoUyMKA09WfeRlUtFa5nb7lMI7aG3ZOH+g85MJxpfqeu0X sN0H4l1dd+S0BO3a/iYxbopa4qNLTW4c0hwMKEIwr4A== X-Received: by 2002:a17:90a:c7d4:: with SMTP id gf20mr1275742pjb.106.1619721604716; Thu, 29 Apr 2021 11:40:04 -0700 (PDT) X-Received: by 2002:a17:90a:c7d4:: with SMTP id gf20mr1275724pjb.106.1619721604511; Thu, 29 Apr 2021 11:40:04 -0700 (PDT) Received: from localhost.localdomain ([69.163.84.166]) by smtp.gmail.com with ESMTPSA id i123sm3566618pfc.53.2021.04.29.11.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 11:40:03 -0700 (PDT) From: Tim Gardner To: dave.hansen@linux.intel.com Cc: tim.gardner@canonical.com, jarkko@kernel.org, shuah@kernel.org, linux-sgx@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Subject: [PATCH 0/1] SGX self test fails Date: Thu, 29 Apr 2021 12:39:51 -0600 Message-Id: <20210429183952.22797-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm just starting my learning curve on SGX, so I don't know if I've missed some setup for the SGX device entries. After looking at arch/x86/kernel/cpu/sgx/driver.c I see that there is no mode value for either sgx_dev_enclave or sgx_dev_provision. With this patch I can get the SGX self test to complete: sudo ./test_sgx Warning: no execute permissions on device file /dev/sgx_enclave 0x0000000000000000 0x0000000000002000 0x03 0x0000000000002000 0x0000000000001000 0x05 0x0000000000003000 0x0000000000003000 0x03 SUCCESS Is the warning even necessary ? Tim