diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp index 8c72528cfa..5dbe3dfc5e 100644 --- a/Kernel/Syscalls/execve.cpp +++ b/Kernel/Syscalls/execve.cpp @@ -848,6 +848,9 @@ KResult Process::exec(String path, Vector arguments, Vector envi VERIFY_NOT_REACHED(); } + // NOTE: This code path is taken in the non-syscall case, i.e when the kernel spawns + // a userspace process directly (such as /bin/SystemServer on startup) + if (prev_flags & 0x200) sti(); Processor::leave_critical();