Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp695981pxf; Thu, 1 Apr 2021 11:07:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyPlLRomQc9V7VqBT++mkuJkLToJNMLvKPaZTleiHzHZggZMBeWftWx9l8Djq7kzUrtxU5 X-Received: by 2002:aa7:cf90:: with SMTP id z16mr11314783edx.273.1617300460786; Thu, 01 Apr 2021 11:07:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617300460; cv=pass; d=google.com; s=arc-20160816; b=qgP5c5V2pUe9pey3HOroG6Qo+hwklKwqoWv3T/5pm5nue1ofc3JYVQb923voCyW4DX 6p153Hmsu0TcG0bRvwkMOMSXzIM5kNZ12gujuRnZx/6HGCdaLE9j2KoKZOmGkc/onnAp bWcyu+bP8Qpiwj7Dmi0jqqKepS6K3V8r0KHBHLRGdrDJIJlezI9ny/AHf52OW/vJcO+j hKYFfd8RcPk0xp1YPSx3Xi+dPrIFiliMEbD7SpTj/5gcKkGGnAFV5KRuO+8jq+VSpqWH TgRnMl5mjbO/LhwVG8aYSMi3o4Yz5Pe7AS71LSz0l14Rx/Rfxn1T7nAiMfYNdnXwXyhj CWJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:autocrypt :from:references:to:subject:dkim-signature; bh=OpWnrRh3Z9+7FSr9YIPDmrdtvk7URUg7ryQieyG0LMQ=; b=fWWZHh1e0vSdBX+MBOGK94YuoWbxfhTJaAPGbA0Q3mO5wEIjETqo5fZ0ztpyNkri9W Dbf6TNy5kvzuA+hZG4aRiZIH/QccjydfABZWEea2nVFcm541lRuLGe3AssXb4l7gtie4 jwPbZ/k/ozqSRhzODMOLE7F/+BSSEwGPzmF9qhlZqkZYzG2A5QFUlJ2ogtFgFRfkxLrO iTKbCLXHUpkTcCvUeHv2rNWbYyQMpXEWoVVJMNYXOXSwvGGJ9pemnNmdoLhQlWx79qGM B4DO0OhLIdS0EEEM0wb+BwKEVRF/xCjJsGeFteYKUf7Vhc8iTfv6SomsYVPTjLs8W54p b+GA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fortanix.onmicrosoft.com header.s=selector2-fortanix-onmicrosoft-com header.b=j7HAVUmr; arc=pass (i=1 spf=pass spfdomain=fortanix.com dkim=pass dkdomain=fortanix.com dmarc=pass fromdomain=fortanix.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=fortanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si4791373edy.138.2021.04.01.11.07.17; Thu, 01 Apr 2021 11:07:40 -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=@fortanix.onmicrosoft.com header.s=selector2-fortanix-onmicrosoft-com header.b=j7HAVUmr; arc=pass (i=1 spf=pass spfdomain=fortanix.com dkim=pass dkdomain=fortanix.com dmarc=pass fromdomain=fortanix.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=fortanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238325AbhDASGF (ORCPT + 99 others); Thu, 1 Apr 2021 14:06:05 -0400 Received: from mail-dm6nam11on2107.outbound.protection.outlook.com ([40.107.223.107]:19297 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S237054AbhDARuJ (ORCPT ); Thu, 1 Apr 2021 13:50:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RaRf4jc2OnXGY01AVq63aVQEeIXgEd92TzwCkkLq+Sfpg4V/10q4gvIyaopcoMNAdbd4dg7vgflULzaFwsubhRsd7Y1qQ3ZgOTQhse3xyfRFG3B1zzSHlkP6U/XfNinoIAb9OJkdqHPctA1Q5kWxgmHzT1OkdNHCXxsWNkLXcKs2z3QVaSj1D3VjJSwG2JOHWjW12DfAWkDoUOmuXX0ZP6dzRHhq1O+G0ZzwGyTDb1OCR5R188ioK6LzmoWM6pRSxMkzd69Dwie2h87cwegJB1dLIvKqykFifYTcDUhA4jhqFeVDJjeE2HhnedEhuwEQfF/uTuUXsQHqXeXmamoEQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OpWnrRh3Z9+7FSr9YIPDmrdtvk7URUg7ryQieyG0LMQ=; b=admxCKhGvX1RALFCjGs/vgETpRw+p6RVKadRaUlQP0RIinFAGROInKJALXaOXb27uXgs+XS+9nol3V6jcEFKmDG+EZ8DMYzxI2rxqIfIvQkuEtCpGamAGP8X/ZVa2tUFkIkZruK5/LzaBjnGf0ZK4S9vC2E4TaIaQM8uhQ1lufx7iz5XmDxnZXoB1X8GVKUrzunNSU+5y8BN8v5TsBPhuh1cgXEK8IXCBvDdHeHV02XczfLg5G+GsRomJNFTM4HVImutNwIR0KiThORz3Kl9eb33ea3YTN8uYYi/VmXkJIbDgukvGjiLwsCxVyYXF1I4OgLVTg8B87IFmPKjI9G84Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fortanix.com; dmarc=pass action=none header.from=fortanix.com; dkim=pass header.d=fortanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fortanix.onmicrosoft.com; s=selector2-fortanix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OpWnrRh3Z9+7FSr9YIPDmrdtvk7URUg7ryQieyG0LMQ=; b=j7HAVUmr2gvWE0jKVybNrhiCQ3GMlKhr6LIjE0PxJYWgaT8M9rlXD/Tk5QDWb+RlIxqYhfk8J7eY2h1F2mFILtDSLDKkG8pzbv/YQqIABcp0eOh/c18icmP7COtCMXU6+DjI44fHR9KDPirInrbZnP8A0E327/XS31L1rKTyIBg= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=fortanix.com; Received: from MWHPR11MB1792.namprd11.prod.outlook.com (2603:10b6:300:10b::9) by MWHPR11MB1581.namprd11.prod.outlook.com (2603:10b6:301:d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.32; Thu, 1 Apr 2021 17:50:07 +0000 Received: from MWHPR11MB1792.namprd11.prod.outlook.com ([fe80::3cc5:3909:3985:3fab]) by MWHPR11MB1792.namprd11.prod.outlook.com ([fe80::3cc5:3909:3985:3fab%8]) with mapi id 15.20.3999.027; Thu, 1 Apr 2021 17:50:07 +0000 Subject: Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl To: Dave Hansen , Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org References: <9688abee-6ba7-e1d9-701e-a5cabac36269@fortanix.com> <0498080e-6fdc-ed6d-8efa-d9c3265fe7e5@intel.com> From: Raoul Strackx Autocrypt: addr=raoul.strackx@fortanix.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkYyb2lmOEJFQURN UkFMT1ZjRkYyTlQva1FsWTBtVnN3YlMrYi9WNzR1azZFcDdxenpoNHpHbEtSS1pzClplS0I4 WmpFT2h5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zM3pUck13TDU4QXpnNk5nbG5DZDNaYXQxU2hlWkhQ dVdXTUdCeERPMUg2UFI2NmRGWVJIM2MKODVaZHNHdWFobnJVSFBLemhZbWx4dUhDQ3FCZ3RK am9wS2NWVGsxRnRLVGUyZHJ3Z25Bb1M2dkh4bTdRTWxJVwpaMTluS25GOFAyN0pFanU0ckdX Z1h3NkgxSmFKMTF4YVVkZG9qdk53T1RKRVcvb3Jhd2tuUUF1ZW5EYnpBR1Z1CkdMV0w3T2ov RGZyTFBBemNXV25GblV2VVc2NEFEWFNBOTh0SWNBY3lod05uY2lqYnNIUkFTQlJidkg5RFhJ c2wKaEwxMDArdzZNTWNMeFpNVmJ4UHBTWWVHaGp4SjdNUysyeGp3eDB4MWlMNmszZk5UNHNT Q3dZa0xRZjJlKzhxYwpFYjNTa0Q0VFR3RDQxUW85SFNuUlkwdnRqblNyZkwyQ3JhVmptOXhh MXhmNlJDQ3kvaXpKNU5TQTZZMXduT0U3Ck1IOHorcVFUM1NxMld0a0NzU1M5K1U2VU9OWmFK dFN5MWNvZ1ZhMDV1QWdRY0tHT3FvcHg3QWlmZUhIUFpqZnIKakVNaHJZQ3Q5WXgzR1VET0hs MnRObDJIOStqZC9BVjByMDRKUTNxSHRWM1Z5UTNxN0N1UTlCTTdnQzVpK1JleQpHSU14Zm0v a09GWTRLRUxOeVYrV01PK2lXRHpZS21tTUxnUkVXNitqZk5jMzhrYWhaQjI2RmJOZTh6QmxU cVpPCmhxYmNZR1ZZNW9Ec004YSthbkwyZDhmaStnPT0KPW9ZT0QKLS0tLS1FTkQgUEdQIFBV QkxJQyBLRVkgQkxPQ0stLS0tLQo= Message-ID: <9d15aae0-078a-ed72-6c14-155cd1bf27c5@fortanix.com> Date: Thu, 1 Apr 2021 19:49:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: <0498080e-6fdc-ed6d-8efa-d9c3265fe7e5@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [81.164.43.210] X-ClientProxiedBy: AM0PR02CA0201.eurprd02.prod.outlook.com (2603:10a6:20b:28f::8) To MWHPR11MB1792.namprd11.prod.outlook.com (2603:10b6:300:10b::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (81.164.43.210) by AM0PR02CA0201.eurprd02.prod.outlook.com (2603:10a6:20b:28f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Thu, 1 Apr 2021 17:50:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4cab9b6d-c2d5-440b-66cd-08d8f5369649 X-MS-TrafficTypeDiagnostic: MWHPR11MB1581: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZtE3eG4f5WiJOyif6gsmau14eLWn06vJRGHxvroqCy+CioKM3mpxMaBdlcmnP3NKpH9BSOQ3xVH/O4haso4bgWI0VWKprka7i2O/NOQwJT6fiJLsar5rWITxYeG+n3/v+zfJlwSt+rrbbRT4WBo88l9TYeX5zEeyldRUtrBrucg08sP1xq1pbcUYHeveTcGrs7edT7oh3kiIl2VRQowje59htQwPpHmsOp9d3P/JK1h+H74Gc4QgPlXbmA2Z3/8KQ8kLp59to+n72DHhrPJFDUgzmtquSWZpXgcELt7iI29XbW0Y7/c1MZmKgcXiQN9bLCAQtHjQdeI+qV2nBGnv3RQDjebqjqMZ9kEFZU1IfPFgWDWwDiY/c8sNYffZPWk0RqGL/5snge/+7yAxpil6w5zVZ/dzkJ5nqsjnhUfKqdnHH9bUv6me+Fs3VeJYOV2Us7B90OV7ExDGgkIR6Fuer9gvzvuOX3bHp56fIRRq5kqFnDa9cM4b1hsRS4ewJXrtRnTWxSqpLQTmxPFJjlc6Unv6lTP0ftwi6lmm6cwa/MiyLfNd1B6mr02iiRFZV9lH2bcE5dMaymq7yfnCjytVkiKKQxMgQfGeKKbnSQkaNnyV3NNq7D+GzCVyX9YoJ6dRla5JMVNM0uBBIBk2DMZ3PAtv/Yl2P0uESZejVaSxRNgkg7E88ZVZU9gcaRnQGGoN2KrHclBk3NC/wnOofRB4fBtFKvAGK/DTW/pMVPnGGbY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1792.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(136003)(366004)(396003)(376002)(39840400004)(8936002)(110136005)(16576012)(316002)(8676002)(44832011)(478600001)(38100700001)(6486002)(66556008)(31686004)(86362001)(6666004)(4744005)(5660300002)(52116002)(83380400001)(31696002)(956004)(53546011)(66946007)(7416002)(26005)(66476007)(921005)(16526019)(2906002)(186003)(36756003)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?Q1RKd0ltUzR3dTc0a292V3hYWlJJVmFsR1JNbHBMSnBzOVp3eFNTUlllaG1S?= =?utf-8?B?d29CRTAyZnhBeEEyL2J2TVRGRDEwc3dKTnBaWnVwWU9US0xIWjlSRVFMQlpn?= =?utf-8?B?eWtYbThvdTZrRSsrVnZLek5NRVQ5U3BpRVBGTmE2dWpDTEJTRTVnZTFYeSsr?= =?utf-8?B?QytTcDhodEltNVZOcTdtNjhpZ01zeDRBNjZadTJxQTRmckM4d2ZRNk9sZ3pO?= =?utf-8?B?amkramhRTENNN0FhdndBYWE5R0RNQmVURHAydjNNU0NwQ3dkR2I5ckVFSnQ1?= =?utf-8?B?SWR1aFgvVitaVXUzMTE0aWt5WC9TMDQ2c0MxanpFVUo0ZlRWV3lvMjA3bzVP?= =?utf-8?B?My82Qk81aGpJL1lETVd6VXVqZW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Wa3pjUnNMZHUxUXBYamJHTDA5NXJUc0JxQS8vMzhh?= =?utf-8?B?dVYrUEpnYjlFeThqK0NKWWR4VVlyK2pocjNaeHp6QWRsWXltWXVpengvbDFn?= =?utf-8?B?Q1FnUW9KbkRzK3I4Nm9OSzM1NW9VNU1vL2ZjWllXVUs1NkVqZlNIVlhWeXNj?= =?utf-8?B?NldZRERUeHNkWUY2OGF4dmFqeVZJQnlCYlFpYnJvYkxJbUVua29jb2xxWFBt?= =?utf-8?B?SXdKbWREQnA2T0RwS1ZzU0FzbGt0RjBnMzBXN1ppbjRmOUVYZ24xbEQ5eW1k?= =?utf-8?B?QWZjUnpsNm9sK2o3UXRuTXllMi93NXVWVzdJYmpLQlJUb0hPd2MzYlo0YWpW?= =?utf-8?B?TzF5bzYwWFNKY0QvTzBmdThldzREaEtQdGJLNEl6dnRRSkd0a29oTVFldE81?= =?utf-8?B?Q01TcWZzSDhBNnE0eVNzR0g3V2FiZ3o3MVk5U3NqYzc5bTlIeEFCbXh4UmtZ?= =?utf-8?Q?ybaClnBM4ON4QtYPSeD570rq1YdtBfEYKm0B+UT?= X-OriginatorOrg: fortanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cab9b6d-c2d5-440b-66cd-08d8f5369649 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1792.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2021 17:50:07.4165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: de7becae-4883-43e8-82c7-7dbdbb988ae6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: x+QwsY5tvMLXWbqrr0cxqB1kYT5OtOXbfHIJXnd5d+hGRxzBHaWjlKRWZdKT8+A0vXJHeGhNeripdjaNsRWddkta6xOH6y6h4YeN/BnIX6E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1581 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/1/21 6:11 PM, Dave Hansen wrote: > On 4/1/21 7:56 AM, Raoul Strackx wrote: >> >> SOLUTION OF THIS PATCH >> This patch adds a new ioctl to enable userspace to execute EEXTEND leaf >> functions per 256 bytes of enclave memory. This enables enclaves to be >> build as specified by enclave providers. > > I think tying the user ABI to the SGX architecture this closely is a > mistake. > > Do we need another ioctl() or can we just relax the existing add_pages > ioctl() to allow unaligned addresses? > I've considered this. In order to do an EEXTEND without an EADD, we'd need to add a flag DONT_ADD_PAGES flag to `add_pages` ioctl as well. Two separate ioctls, one for adding, another for extending made more sense to me. Raoul