All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Haitao Huang" <haitao.huang@linux.intel.com>
To: "Hansen, Dave" <dave.hansen@intel.com>,
	"Chatre, Reinette" <reinette.chatre@intel.com>,
	"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
	"jarkko@kernel.org" <jarkko@kernel.org>,
	"linux-sgx@vger.kernel.org" <linux-sgx@vger.kernel.org>,
	"Dhanraj, Vijay" <vijay.dhanraj@intel.com>
Cc: "Huang, Haitao" <haitao.huang@intel.com>
Subject: Re: Support SGX2 V5: Seg-fault with EACCEPT for large number of EPC pages
Date: Fri, 29 Jul 2022 14:37:32 -0500	[thread overview]
Message-ID: <op.1p214u15wjvjmi@hhuan26-mobl1.mshome.net> (raw)
In-Reply-To: <DM8PR11MB55911E8F9DA739F215FD1D90F6999@DM8PR11MB5591.namprd11.prod.outlook.com>

On Fri, 29 Jul 2022 14:14:15 -0500, Dhanraj, Vijay  
<vijay.dhanraj@intel.com> wrote:

> Hi Dave,
>
> Tried with the latest tip and I still observe the issue. I tried 2G, 4G  
> and 8G sized requests and as before, 2GB size requests works fine but  
> 4GB and 8GB requests failed.
>
> Commit I have applied my test patch:
> commit 038ef9928e1acb37bbe808c23a421189f1fd96cb (origin/x86/sgx)
> Merge: e0a5915f1cca e0dccc3b76fb
> Author: Ingo Molnar <mingo@kernel.org>
> Date:   Tue Jul 26 09:14:28 2022 +0200
>
>     Merge tag 'v5.19-rc8' into x86/sgx, to resolve conflicts
>
> Kernel version:
> Linux sdp 5.19.0-rc8-custom #1 SMP PREEMPT_DYNAMIC Fri Jul 29 10:28:25  
> PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
>

Using a kernel built at the same commit, I did the same test on another  
machine with 4G EPC reported by the kernel log and reproduced the failures  
only on 5th run for both 4G and 8G size requests (set by edmm_size). The  
failure seems to stick for subsequent runs but I did not run more than 7  
times for each case so can't say definitely about that.

Thanks
Haitao

>
>> -----Original Message-----
>> From: Hansen, Dave <dave.hansen@intel.com>
>> Sent: Friday, July 29, 2022 9:38 AM
>> To: Dhanraj, Vijay <vijay.dhanraj@intel.com>; Chatre, Reinette
>> <reinette.chatre@intel.com>; dave.hansen@linux.intel.com;
>> jarkko@kernel.org; linux-sgx@vger.kernel.org
>> Cc: Huang, Haitao <haitao.huang@intel.com>
>> Subject: Re: Support SGX2 V5: Seg-fault with EACCEPT for large number of
>> EPC pages
>>
>> On 7/29/22 09:01, Dhanraj, Vijay wrote:
>> > Huang, Haitao and I created a simple patch to repro this issue using  
>> the SGX
>> selftests and we do see the issue when using V5 (5.18.0-rc5) but cannot
>> repro the issue in V4 (5.18.0-rc2). Not sure if this is a driver issue  
>> or kernel,
>> can you please check?
>>
>> Thanks for the report.
>>
>> Could you please try the code that's going to go to Linus shortly?   
>> It's really
>> the only version that matters at this point?
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/log/?h=x86/sgx


  reply	other threads:[~2022-07-29 19:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-29 16:01 Support SGX2 V5: Seg-fault with EACCEPT for large number of EPC pages Dhanraj, Vijay
2022-07-29 16:37 ` Dave Hansen
2022-07-29 19:14   ` Dhanraj, Vijay
2022-07-29 19:37     ` Haitao Huang [this message]
2022-08-01 18:00       ` Haitao Huang
2022-08-01 16:46 ` jarkko
2022-08-01 17:47   ` Dhanraj, Vijay
2022-08-03 17:28 ` jarkko
2022-08-04  0:38   ` Dhanraj, Vijay
2022-08-04  0:57     ` jarkko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.1p214u15wjvjmi@hhuan26-mobl1.mshome.net \
    --to=haitao.huang@linux.intel.com \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=haitao.huang@intel.com \
    --cc=jarkko@kernel.org \
    --cc=linux-sgx@vger.kernel.org \
    --cc=reinette.chatre@intel.com \
    --cc=vijay.dhanraj@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.