Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp701632imm; Mon, 1 Oct 2018 17:32:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61znfnAs0s/ZO3VeQCtScQsG1ivCYUC7BN3mNc8fM/3O1EhtWIahlJfG/CPvvJPR5ZGC0Tm X-Received: by 2002:a62:425b:: with SMTP id p88-v6mr8180073pfa.96.1538440324290; Mon, 01 Oct 2018 17:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538440324; cv=none; d=google.com; s=arc-20160816; b=BHils2B4PcxHCflcPQOO+m3iu5evBOKexpCz3WKgF2TznGNk0ueDsG0TMoWr0zTltJ W/KgOhMWQkQNLyZ6b/Hqns+PFX625GNuRtPTpQA2+UtFdsGbnxgGPW72dCs1pumIwXXx gb1bBrmfu9i0qY8fu/JdDXMdQ2LoS2U0AhtpBk6bEDyhQZwanLtTGVyeL7i6xpkNm6aT BtXoyH0mIgoDmD3CzUIRc0Imn95MyupZu6GLgQVfgKRzLo9aH5iiOfN5oDYuRXXxkrDX 5f42Mz2M68rWwqYWlYW9mT8ckZ3zOYUgls5TwTRHWC8y2oy12eHARprCaTp5oRgujawV 66WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ef19kNVdUZN0G0SItR1TMEER9JGBs30NDpS9/b44GIc=; b=MpL2Qh9QcDNpglGXDydVsiuMVZ1wq9pfUAzAAw62U7QtEgYeRHMpEpIDKoEyof4N0l os+zNMRvrHbJDGZr0CUq/8px7nLgY+ygbdPvyzuWg/FrFeokf7u1g1v7JGKdX6SKjM+L XmJ9pMO0T3TCQJwardARUc/ojARSb9N3aU9ujXB/8rA5xgnnz4OxmZMj4XB1MlICWmW8 CSDAKVfL0Z/2ic1tL3mC5iqSpi3poaZggI13ml9uezvvmxaN19l+qo4JlzXSWgepgGwK YNSF/tkfBQ3ebm0KsUQABEOzDc51wPyvJTBQqzQO9Srv8fYs107AzVTWwMtqfc28ZTCq B/4A== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8-v6si13257515pgx.37.2018.10.01.17.31.48; Mon, 01 Oct 2018 17:32:04 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726455AbeJBHMF (ORCPT + 99 others); Tue, 2 Oct 2018 03:12:05 -0400 Received: from mga07.intel.com ([134.134.136.100]:60079 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeJBHMF (ORCPT ); Tue, 2 Oct 2018 03:12:05 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Oct 2018 17:31:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,329,1534834800"; d="scan'208";a="237709868" Received: from hubermic-mobl.ger.corp.intel.com (HELO localhost) ([10.252.54.31]) by orsmga004.jf.intel.com with ESMTP; 01 Oct 2018 17:31:08 -0700 Date: Tue, 2 Oct 2018 03:31:06 +0300 From: Jarkko Sakkinen To: Jethro Beekman Cc: Dave Hansen , Andy Lutomirski , "Christopherson, Sean J" , Andrew Lutomirski , X86 ML , Platform Driver , "nhorman@redhat.com" , "npmccallum@redhat.com" , "Ayoun, Serge" , "shay.katz-zamir@intel.com" , "linux-sgx@vger.kernel.org" , Andy Shevchenko , Dave Hansen , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , LKML Subject: Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX Message-ID: <20181002003106.GC21814@linux.intel.com> References: <20180926173516.GA10920@linux.intel.com> <2D60780F-ADB4-48A4-AB74-15683493D369@amacapital.net> <9835e288-ba98-2f9e-ac73-504db9512bb9@intel.com> <20180926204400.GA11446@linux.intel.com> <992b1d6d-cc0f-776f-d938-2a1f7cad52c8@intel.com> <20180927135603.GF8242@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 01, 2018 at 09:42:48PM +0000, Jethro Beekman wrote: > 1) Even though the vDSO function exists, userspace may still call > `ENCLU[EENTER]` manually, so the fault handling as described in the current > patch should also be maintained. You mean the way it was is in v13 and not the way it is in v14? > 2) All the information that would normally be provided through the signal > handler (x86 fault number, reason) should be provided to userspace. As I've understood it, this should be just a change in the delivery path. /Jarkko