Linux-Sgx Archive on lore.kernel.org
 help / color / Atom feed
* Bug in EPC paging
@ 2019-07-27 23:16 Jethro Beekman
  2019-07-29 14:56 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Jethro Beekman @ 2019-07-27 23:16 UTC (permalink / raw)
  To: linux-sgx

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

A user is reporting CPU soft lockup with Intel SDK version 2.1 and 2.5 
driver. This only happens when using SGX in conjunction with DPDK (Data 
Plane Development Kit) in the same process. The process is running two 
enclaves that together are bigger than the EPC.

Dmesg output:

2.1 driver: 
https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/dmesg-full.log

2.5 driver: 
https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/dmesg-full-2.5.0.log

Enclave memory layout: 
https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/sgxs.info

-- 
Jethro Beekman | Fortanix


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3990 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug in EPC paging
  2019-07-27 23:16 Bug in EPC paging Jethro Beekman
@ 2019-07-29 14:56 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2019-07-29 14:56 UTC (permalink / raw)
  To: Jethro Beekman; +Cc: linux-sgx

On Sat, Jul 27, 2019 at 11:16:01PM +0000, Jethro Beekman wrote:
> A user is reporting CPU soft lockup with Intel SDK version 2.1 and 2.5
> driver. This only happens when using SGX in conjunction with DPDK (Data
> Plane Development Kit) in the same process. The process is running two
> enclaves that together are bigger than the EPC.
> 
> Dmesg output:
> 
> 2.1 driver:
> https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/dmesg-full.log
> 
> 2.5 driver: https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/dmesg-full-2.5.0.log

The log from 2.5 doesn't show any SGX activity, rather it's generating
remote TLB flushes during CoW.  That would imply this is a generic remote
TLB flush (or SMP function call IPIs) issue and not an EPC bug.

> 
> Enclave memory layout:
> https://github.com/YangZhou1997/dpdk-sgx-crash/blob/master/sgxs.info
> 
> -- 
> Jethro Beekman | Fortanix
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-27 23:16 Bug in EPC paging Jethro Beekman
2019-07-29 14:56 ` Sean Christopherson

Linux-Sgx Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-sgx/0 linux-sgx/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-sgx linux-sgx/ https://lore.kernel.org/linux-sgx \
		linux-sgx@vger.kernel.org linux-sgx@archiver.kernel.org
	public-inbox-index linux-sgx


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-sgx


AGPL code for this site: git clone https://public-inbox.org/ public-inbox