mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
x86-64: enable smep and smap
This commit is contained in:
@@ -29,7 +29,10 @@ __attribute__((noreturn)) void syscall_sigreturn(context_t *context) {
|
||||
|
||||
__assert(ARCH_CONTEXT_ISUSER(&sigframe->context));
|
||||
|
||||
// XXX TODO FIXME there is a bug here that needs this temporarily.
|
||||
arch_cpu_user_access_begin();
|
||||
arch_extracontext_copy(¤t_thread()->extracontext, &sigframe->extracontext);
|
||||
arch_cpu_user_access_end();
|
||||
ARCH_CONTEXT_THREADLOAD(current_thread(), context);
|
||||
arch_context_switch(&sigframe->context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user