diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-11-30 00:27:28 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-01 21:44:11 +0200 |
commit | a9e436c4a3bc30e34212ec2ee6b52c76443f341d (patch) | |
tree | c4a56eca18593afc5c1ac5ceba7a681bd9dbbb8c /Kernel/Memory | |
parent | 4ca39c71104084be36b672fbe10952ba88326fba (diff) | |
download | serenity-a9e436c4a3bc30e34212ec2ee6b52c76443f341d.zip |
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.
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/MemoryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index 9d915078a1..42cd4e34f3 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -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); } } |