-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PAL/Linux-SGX] Print a nice error if enclave range collides with oth…
…er regions Previously, if enclave size was very large (e.g. 2TB) its collision with some hardcoded memory regions in untrusted memory (ASan shadow map, debug info area, untrusted shared memory) caused allocation failures, leading to cryptic errors. This commit fixes that and checks all the ranges for collisions. The lack of these checks was _not_ a security issue, because: - ASan range is used only in debug builds - debug range is used also in release, but only by the untrusted PAL - shared memory range allocation would fail in ocall_mmap_untrusted() before leaving the enclave (on pointer check) Signed-off-by: Michał Kowalczyk <mkow@invisiblethingslab.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters