Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
95ed80c
Add detection for EDMM support in kernel
haitaohuang Oct 13, 2021
9da656c
EDMM support using kernel interfaces
haitaohuang Aug 24, 2021
6074214
emm: fix typos
haitaohuang Dec 2, 2021
e6b2ff7
update IOCTL definitions for EDMM
haitaohuang Dec 2, 2021
5afb5c5
emm: update kernel branch in README
haitaohuang Dec 5, 2021
5cb4cf7
urts and enclave_common: update for edmm kernel patches v2
haitaohuang Feb 8, 2022
60fda39
sgx_mm_ocalls: add more robust error handling for ioctl() calls
haitaohuang Feb 10, 2022
022a663
EMM: Update README for the kernel patches V2
haitaohuang Feb 11, 2022
1398ae3
urts: check if /dev is mounted with noexec
haitaohuang Mar 7, 2022
3dda98b
emm: add design doc and update README
haitaohuang Mar 8, 2022
151a3bb
TRTS: use a separate spinlock implementation for EMM
haitaohuang Mar 9, 2022
fbe7e62
Revert "urts: check if /dev is mounted with noexec"
haitaohuang Mar 22, 2022
0e57da8
enclave_common and urts: update for EDMM kernel patch V3
haitaohuang Apr 5, 2022
ac72298
emm: update README for edmm V3
haitaohuang Apr 5, 2022
1c664ee
PSW: update for kernel EDMM patch V4
haitaohuang Apr 15, 2022
6f18470
enclave_common: update for kernel patch V5
haitaohuang May 8, 2022
07ba234
sdk/emm: merge ocalls for continuous pages
haitaohuang May 8, 2022
6ca2ce7
trts: fix an overflow
haitaohuang May 8, 2022
0e2de0a
ema: remove unused lock
haitaohuang May 12, 2022
bda6b29
sdk/ema: misc stability fixes
haitaohuang May 15, 2022
c4c1b3d
emm: add custom allocator for internal use
haitaohuang May 13, 2022
139aabb
Update SGX_EMM.md to include sgx_mm_init API
haitaohuang May 27, 2022
ec544fe
enclave_common: simplfy permissions change
haitaohuang May 29, 2022
a6af9b5
emalloc: misc fixes
haitaohuang May 29, 2022
ca27dd4
urts/user_handler: allow OCalls/Exception callback without OCall tables
haitaohuang Jun 6, 2022
5d778d8
sdk/emm: update design doc
haitaohuang Jun 8, 2022
68048bd
psw/enclave_common: remove some unneeded wording from enclave_alloc a…
haitaohuang Jun 15, 2022
e3865c6
EMM: update driver interface for upstream kernel
haitaohuang Jun 28, 2022
a2a4b48
Enclave Common API for EDMM
haitaohuang Jun 28, 2022
8da2132
emm: handle potential spurious #PF
haitaohuang Jul 8, 2022
be1417a
EMM: update design doc
haitaohuang Jul 12, 2022
33718ab
Add sgx-emm submodule
haitaohuang Jul 14, 2022
ee88ac2
EMM: restructure to use sgx-emm submodule
haitaohuang Jul 14, 2022
d9f70c2
Revert "enclave_common: simplfy permissions change"
haitaohuang Aug 17, 2022
fc6f8f6
sgx-emm/api_tests: add a case to change permissions to PT_NONE
haitaohuang Aug 17, 2022
3cdca12
EDMM support with configurable User Region Size
xxu36 Jun 6, 2022
1cbcb2d
Added signtool checking for EDMM related configurations
xxu36 Jul 3, 2022
6b68f96
Support for compatibility
xxu36 Jul 10, 2022
a0b0ff3
Metadata and sdk version selection for compatibility
xxu36 Jul 18, 2022
92a08a3
Fix bookkeeping overhead
xxu36 Aug 23, 2022
5a8e3f1
update API test to use UserRegionSize in config
haitaohuang Jul 19, 2022
4f4d1f1
Update enclave common loader interface
xxu36 Aug 5, 2022
1604f39
Fix build error after adapting enclave common loader changes
xxu36 Aug 11, 2022
6ad7ab1
update for sgx_mm_init returning error.
haitaohuang Aug 18, 2022
a3254d9
sgx-emm: update commit to point to dev
haitaohuang Aug 29, 2022
e2fce97
enclave_common: fix build error in sgx_mm_ocalls.cpp
haitaohuang Aug 29, 2022
b817ce3
update commit for sgx-emm
haitaohuang Aug 30, 2022
3c082a7
sgx-emm/api_tests: add case for longjmp from exception handler
haitaohuang Sep 8, 2022
2b4dcf8
sgx-emm/api_tests: add a case with nested handler
haitaohuang Sep 9, 2022
c9f757f
sgx-emm/api_tests: add random allocation and stack expansion cases
haitaohuang Sep 9, 2022
ec216f7
sgx-emm/api_tests: move random tests to unsafe
haitaohuang Sep 10, 2022
0cb086d
sdk/trts: remove init_rts_ema_root
haitaohuang Sep 11, 2022
720b1c1
urts: add a null pointer check for acquire_thread
haitaohuang Sep 19, 2022
bfeded4
update sgx-emm commit
haitaohuang Sep 19, 2022
0e68258
Add two helper scripts to compile and install
tatetian Dec 24, 2018
020c837
Enable Intel MPX for enclaves by default
tatetian Dec 28, 2018
dfea91f
Add sgx_thread_get_self API
tatetian Jan 4, 2019
dfdabfe
Add integrity-only mode for SGX protected files
Aug 6, 2019
10b7fb3
Refactor scripts that compiles and installs SGX SDK
liqinggd Jan 13, 2020
0a88815
Add --no-start-aesm parameter to psw installation
Feb 12, 2020
a18698f
Add sgx-gdb support for apps running on Occlum
liqinggd Feb 4, 2020
2c68a3e
Support handling exceptions in Occlum's user space
Mar 6, 2020
f359f3c
Add sgx_thread_wait_untrusted_event_timeout_ocall API
liqinggd Mar 15, 2020
2c7dcb0
Support user code manage stack
Apr 29, 2020
572ac00
Add no_mitigation option to compile sdk
liqinggd May 19, 2020
c4c69fb
Add macro to get rid of rdrand for non-supported platforms
jessehui Apr 29, 2020
a7520f1
Create uRTS static library
Jun 8, 2020
9c7875d
Fix urts not found by sgx debugger when statically linked by libocclu…
Jun 28, 2020
d03fcc3
Add optional timeout to the OCall for waiting events
tatetian Jul 3, 2020
ad73520
Add new EDL file for occlum specific usage
jessehui Jul 16, 2020
64c0421
Improve support for urts_sim static library building
jessehui Aug 4, 2020
c15d8f7
Support no-return customer exception handlers
Sep 23, 2020
617d0df
Support to wait event with an absolute timeout
liqinggd Nov 17, 2020
af62b2f
Compile and install DCAP package
Dec 10, 2020
e08e421
Support SGX-GDB to load library's symbol for Glibc
liqinggd Jan 13, 2021
73fc25c
Fix aesm build failure in docker buildx enviroment
Jan 25, 2021
f92b1c1
Enable exception support under simulation mode
Jan 26, 2021
e0546fc
Fix some simulation mode AEX bugs and add SIG64 support
Feb 4, 2021
861a7b6
Remove PSW and DCAP build process
Feb 8, 2021
05b64e2
Fix create enclave failed due to ENOMEM in simulation mode
jessehui Aug 11, 2021
7dafa4a
Solve the simulation mode register signal handler twice issue.
Aug 13, 2021
069f920
Update the simulation mode to align the Occlum implementation
Dec 3, 2021
7ab0aa5
Workaround the Occlum interrupt mode
Dec 7, 2021
ffaa5fa
Update the installation script
Dec 28, 2021
38fdd14
Add one more check in simualtion mode signal hander to confirm the
Dec 30, 2021
968d0f5
Fix se_event_timeout_wait to handle relative and absolute timeout
jessehui Feb 23, 2022
b819fa5
Support parameterized cache size of SGX PFS (apply intel's patch)
lucassong-mh Sep 2, 2022
d786b38
Add fsync to sgx_fflush and sgx_fclose to ensure persistency
lucassong-mh Sep 2, 2022
f1c5425
Fix bug in get_first_executable_segment_info()
Bonjourz Sep 9, 2022
6715a60
Revert "Add fsync to sgx_fflush and sgx_fclose to ensure persistency"…
lucassong-mh Oct 31, 2022
32383ef
Add the interrupt mechanism for dynamically-loaded workloads
tatetian Jun 27, 2020
d01ec4f
Fix the interrupt mode issue by restore the FS and the RFlags
Dec 28, 2021
92ae3ec
Add PKU support: isolating LibOS from userspace apps
Bonjourz Apr 1, 2022
faf8dea
Enlarge the stack size for non-standard exception handler
jessehui Nov 22, 2022
01180a9
Fix edmm compilation in simulation mode
jessehui Nov 22, 2022
5f6ed53
Enable vdso and support interrupt mechanism
jessehui Nov 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable exception support under simulation mode
  • Loading branch information
zongmin.gu authored and jessehui committed Nov 22, 2022
commit f92b1c18dd4704c4fbdb2d31e66d21fbb48b974e
3 changes: 2 additions & 1 deletion sdk/simulation/uinst/u_instructions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ void call_old_handler(int signum, void* siginfo, void *priv)

sigset_t cur_set;
pthread_sigmask(SIG_SETMASK, &g_old_sigact[signum].sa_mask, &cur_set);

if(g_old_sigact[signum].sa_flags & SA_SIGINFO)
{

Expand Down Expand Up @@ -276,6 +275,8 @@ uintptr_t _EINIT(secs_t* secs, enclave_css_t *css, token_t *launch)
return SGX_ERROR_INVALID_ATTRIBUTE;
}

reg_sig_handler_sim();

mcp_same_size(&this_secs->mr_enclave, &css->body.enclave_hash, sizeof(sgx_measurement_t));
this_secs->isv_prod_id = css->body.isv_prod_id;
this_secs->isv_svn = css->body.isv_svn;
Expand Down