Kernel: Remove alternative signal stack settings on execve(2)

A successful call to execve(2) removes any existing alternate signal
stack.
This commit is contained in:
Idan Horowitz 2021-12-11 17:39:52 +02:00
parent 0ca1231d8f
commit 31fa3f8b1b
Notes: sideshowbarker 2024-07-17 22:55:07 +09:00

View file

@ -685,6 +685,9 @@ void Thread::clear_signals()
m_pending_signals = 0;
m_have_any_unmasked_pending_signals.store(false, AK::memory_order_release);
m_signal_action_data.fill({});
// A successful call to execve(2) removes any existing alternate signal stack
m_alternative_signal_stack = 0;
m_alternative_signal_stack_size = 0;
}
// Certain exceptions, such as SIGSEGV and SIGILL, put a