Prevent infinite userspace crash loops.

This commit is contained in:
4lDO2
2024-06-20 22:56:19 +02:00
parent 55fe58adf6
commit 7d5b2e6c21
5 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -203,8 +203,8 @@ pub struct Context {
pub struct SignalState {
/// Offset to jump to when a signal is received.
pub user_handler: NonZeroUsize,
/// Offset to jump to when a program fault occurs.
pub excp_handler: NonZeroUsize,
/// Offset to jump to when a program fault occurs. If None, the context is sigkilled.
pub excp_handler: Option<NonZeroUsize>,
/// Signal control pages, shared memory
pub thread_control: RaiiFrame,