ladybird/Kernel/Arch/i386
Andreas Kling 6fe83b0ac4 Kernel: Crash the current process on OOM (instead of panicking kernel)
This patch adds PageFaultResponse::OutOfMemory which informs the fault
handler that we were unable to allocate a necessary physical page and
cannot continue.

In response to this, the kernel will crash the current process. Because
we are OOM, we can't symbolicate the crash like we normally would
(since the ELF symbolication code needs to allocate), so we also
communicate to Process::crash() that we're out of memory.

Now we can survive "allocate 300 MB" (only the allocate process dies.)
This is definitely not perfect and can easily end up killing a random
innocent other process who happened to allocate one page at the wrong
time, but it's a *lot* better than panicking on OOM. :^)
2020-05-06 22:28:23 +02:00
..
Boot Kernel: Move kernel above the 3GB virtual address mark 2020-01-17 22:34:26 +01:00
CPU.cpp Kernel: Crash the current process on OOM (instead of panicking kernel) 2020-05-06 22:28:23 +02:00
CPU.h Kernel: Crash the current process on OOM (instead of panicking kernel) 2020-05-06 22:28:23 +02:00
Interrupts.h Kernel: Prepend missing license 2020-04-03 09:12:29 +02:00
ISRStubs.h Kernel: Prepend missing license 2020-04-03 09:12:29 +02:00