mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
Kernel: Replace usages of SIGSTKFLT with SIGSEGV
SIGSTKFLT is a signal that signifies a stack fault in a x87 coprocessor, this signal is not POSIX and also unused by Linux and the BSDs, so let's use SIGSEGV so programs that setup signal handlers for the common signals could still handle them in serenity.
This commit is contained in:
parent
4ca39c7110
commit
a9e436c4a3
Notes:
sideshowbarker
2024-07-17 23:13:38 +09:00
Author: https://github.com/IdanHo
Commit: a9e436c4a3
Pull-request: https://github.com/SerenityOS/serenity/pull/10674
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/linusg ✅
2 changed files with 2 additions and 2 deletions
|
@ -654,7 +654,7 @@ void MemoryManager::validate_syscall_preconditions(AddressSpace& space, Register
|
|||
VirtualAddress userspace_sp = VirtualAddress { regs.userspace_sp() };
|
||||
if (!MM.validate_user_stack_no_lock(space, userspace_sp)) {
|
||||
dbgln("Invalid stack pointer: {}", userspace_sp);
|
||||
unlock_and_handle_crash("Bad stack on syscall entry", SIGSTKFLT);
|
||||
unlock_and_handle_crash("Bad stack on syscall entry", SIGSEGV);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue