-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewriter: Omit register scrubbing when caller/target pkey are zero
If a call gate's caller has pkey zero then its memory is accessible to all compartments and we shouldn't care about scrubbing registers before calling the target since its memory is not protected anyway. If the call gate's target has pkey zero then the same argument holds for the register scrubbing after calling the target function.
- Loading branch information
Showing
1 changed file
with
51 additions
and
40 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