Skip to content
Snippets Groups Projects
Verified Commit 568fc092 authored by Jacob Lorentzon's avatar Jacob Lorentzon
Browse files

Reset sighandler in fexec before switching addrsp.

parent 44295491
No related branches found
No related tags found
No related merge requests found
...@@ -421,6 +421,15 @@ where ...@@ -421,6 +421,15 @@ where
push(argc)?; push(argc)?;
if let Ok(sighandler_fd) = syscall::dup(*open_via_dup, b"sighandler").map(FdGuard::new) {
let _ = syscall::write(*sighandler_fd, &SetSighandlerData {
user_handler: 0,
excp_handler: 0,
thread_control_addr: 0,
proc_control_addr: 0,
});
}
unsafe { unsafe {
deactivate_tcb(*open_via_dup)?; deactivate_tcb(*open_via_dup)?;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment