Conversation
adapt to arceos change
fix(signal): sigtimedwait
|
Because all trampolines in user mode programs are located at the same physical address, if I understand correctly, I can add write permissions through mprotect and replace this part of the code with malicious shellcode. When other programs sigreturn, the control flow will be hijacked Other kernel code is not in the va_range of the user mode program address space, so it avoids being modified |
You are right. But see doc about sigreturn:
The assembly code of sigreturn should be implemented in the VDSO, which is not yet implemented in Starry. Therefore, we temporarily use the old Linux implementation, although it has certain security issues. If you are interested in VDSO, you can contact me. |
Maybe we will try to implement VSDO in the final. |
OK.Good luck on your exam! |
Description
Depends on oscomp/arceos#34
This PR implements signal functionalities, including:
src/syscall.rs)eixt_signal)cloneimplementation