ladybird/Kernel/Graphics
Brian Gianforcaro 54b9a4ec1e Kernel: Handle promise violations in the syscall handler
Previously we would crash the process immediately when a promise
violation was found during a syscall. This is error prone, as we
don't unwind the stack. This means that in certain cases we can
leak resources, like an OwnPtr / RefPtr tracked on the stack. Or
even leak a lock acquired in a ScopeLockLocker.

To remedy this situation we move the promise violation handling to
the syscall handler, right before we return to user space. This
allows the code to follow the normal unwind path, and grantees
there is no longer any cleanup that needs to occur.

The Process::require_promise() and Process::require_no_promises()
functions were modified to return ErrorOr<void> so we enforce that
the errors are always propagated by the caller.
2021-12-29 18:08:15 +01:00
..
Bochs Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
Console Kernel: Propagate overflow errors from Memory::page_round_up 2021-12-28 23:08:50 +01:00
Intel Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
VirtIOGPU Kernel: Handle promise violations in the syscall handler 2021-12-29 18:08:15 +01:00
Definitions.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
FramebufferDevice.cpp Kernel: Handle promise violations in the syscall handler 2021-12-29 18:08:15 +01:00
FramebufferDevice.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
GenericFramebufferDevice.cpp Kernel: Handle promise violations in the syscall handler 2021-12-29 18:08:15 +01:00
GenericFramebufferDevice.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
GenericGraphicsAdapter.h Kernel: Remove unused String.h includes 2021-12-11 13:15:26 -08:00
GraphicsManagement.cpp Kernel/Graphics: Rename GraphicsDevice => GenericGraphicsAdapter 2021-10-27 07:57:44 +03:00
GraphicsManagement.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00
VGACompatibleAdapter.cpp Kernel: Replace KResult and KResultOr<T> with Error and ErrorOr<T> 2021-11-08 01:10:53 +01:00
VGACompatibleAdapter.h Kernel: Remove the kmalloc_eternal heap :^) 2021-12-28 21:02:38 +01:00