On Fri, 29 Jul 2022 14:14:15 -0500, Dhanraj, Vijay
<vijay.dhanraj@xxxxxxxxx> 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@xxxxxxxxxx>
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@xxxxxxxxx>
Sent: Friday, July 29, 2022 9:38 AM
To: Dhanraj, Vijay <vijay.dhanraj@xxxxxxxxx>; Chatre, Reinette
<reinette.chatre@xxxxxxxxx>; dave.hansen@xxxxxxxxxxxxxxx;
jarkko@xxxxxxxxxx; linux-sgx@xxxxxxxxxxxxxxx
Cc: Huang, Haitao <haitao.huang@xxxxxxxxx>
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