-
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] Disallow memfault handling with no faulting address r…
…eported Previously, Linux-SGX PAL propagated the memory fault exception with address 0 anyway to LibOS/app even if no faulting address was actually reported by SGX. This could happen when `sgx.use_exinfo` is disabled in the manifest or the environment does not support EXINFO at all. However, LibOS can't/shouldn't handle such case for security reasons. This commit adds a check on whether the faulting address is reported before handling a memory fault and we loudly fail if it's not. Signed-off-by: Kailun Qin <kailun.qin@intel.com>
- Loading branch information
1 parent
b6fc88d
commit 9f80c42
Showing
4 changed files
with
54 additions
and
29 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
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