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

Safe userspace memory access mechanism #146

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

Safe userspace memory access mechanism #146

losfair opened this issue Aug 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@losfair
Copy link

losfair commented Aug 14, 2020

With the current UserPtr implementation we don't isolate userspace memory accesses from the rest of the kernel. The kernel dereferences user pointers directly, and VM faults from writing/reading a user address aren't handled.

Given that some platforms may provide special protection against userspace memory accesses (e.g. SMAP on x86), it would be nice to have copy_to_user/copy_from_user-like primitives in the HAL.

@wangrunji0408 wangrunji0408 added the enhancement New feature or request label Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants