]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
x86: treat user page fault as SIGSEGV
authorTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:56:13 +0000 (00:56 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:56:13 +0000 (00:56 -0300)
commit444aae5afb4209745222971718d6726b8c18aeab
treea8f247e8287d58af786a01df5c57566deee8c959
parentf5a2441a0e608d88334c6879f5eb4d0e4e8f4543
x86: treat user page fault as SIGSEGV

Handle ISR14 page faults from ring3 by terminating the current process with a SIGSEGV-like status (128+11) instead of kernel panic. Add userland smoke test that triggers a NULL write and validates waitpid status.
src/arch/x86/idt.c
user/init.c