zCore icon indicating copy to clipboard operation
zCore copied to clipboard

Safe userspace memory access mechanism

Open losfair opened this issue 5 years ago • 0 comments

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.

losfair avatar Aug 14 '20 06:08 losfair