1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 16:17:34 +00:00
serenity/Kernel/Arch
Tom 365fa05a82 Kernel: Handle safe_memcpy/safe_memset/safe_strnlen faults in irq handlers
Fix gracefully failing these calls if used within IRQ handlers. If we're
handling IRQs, we need to handle these failures first, because we can't
really resolve page faults in a meaningful way. But if we know that it
was one of these functions that failed, then we can gracefully handle
the situation.

This solves a crash where the Scheduler attempts to produce backtraces
in the timer irq, some of which cause faults.

Fixes #3492
2020-09-14 21:18:59 +02:00
..
i386 Kernel: Handle safe_memcpy/safe_memset/safe_strnlen faults in irq handlers 2020-09-14 21:18:59 +02:00
PC AK: Rename KB, MB, GB to KiB, MiB, GiB 2020-08-16 16:33:28 +02:00