Luna/kernel
apio bb00e3c112 Kernel: Guard against recursive panics
Previously, when we panicked (page-fault for example) while dumping a kernel panic, it would just loop over and over again.

Now, we check if we were already in a panic, and limit the dump:
- No stack trace.
- Only a few registers.
- Only serial (since we can page fault while writing to the framebuffer)

This should make recursive panics much more difficult to achieve.
If we page-fault while writing to console, we don't even see a panic (not even in serial) and eventually triple-fault.
So this patch is actually more user-friendly.
2022-10-18 21:08:21 +02:00
..
include Kernel: Rename the getpid() syscall to getprocid() 2022-10-18 17:36:17 +02:00
src Kernel: Guard against recursive panics 2022-10-18 21:08:21 +02:00
Makefile Kernel: Build with -fstack-protector-strong instead of -fstack-protector-all 2022-10-12 14:50:31 +02:00
moon.ld Start the call stack with a null RBP before calling _start 2022-09-18 17:03:29 +02:00