[PATCH 0/2] um: improve UML page fault handling

From: Petr Tesarik
Date: Fri Dec 15 2023 - 07:30:53 EST


From: Petr Tesarik <petr.tesarik1@xxxxxxxxxxxxxxxxxxx>

Improve UML handling of segmentation faults in kernel mode. Although
such page faults are generally caused by a kernel bug, it is annoying
if they cause an infinite loop, or panic the kernel. More importantly,
a robust implementation allows to write KUnit tests for various guard
pages, preventing potential kernel self-protection regressions.

Petr Tesarik (2):
um: do not panic on kernel mode faults
um: oops on accessing an non-present page in the vmalloc area

arch/um/kernel/trap.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)

--
2.34.1