Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page permissions not visible to the kernel #787

Open
davidchisnall opened this issue Aug 14, 2020 · 0 comments
Open

Page permissions not visible to the kernel #787

davidchisnall opened this issue Aug 14, 2020 · 0 comments
Labels
p2 Important but non-urgent priority

Comments

@davidchisnall
Copy link
Contributor

We have several open bugs with the same root cause, so I am filing a new bug and will close the others as duplicates:

The enclave_mem code can change the permission of a page (either with mmap or mprotect), but the kernel does not see this change. The kernel will then call lkl_access_ok, see that it is a valid enclave page, and trap. Userspace sees this as the system halting instead of returning an error from system calls that try to access invalid memory.

Note that this affects only buggy code. Well-behaved code should not be passing pointers to the kernel that userspace can't access.

I don't believe it's worth investing effort in making this work, we should fix this by fixing #597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Important but non-urgent priority
Projects
None yet
Development

No branches or pull requests

2 participants