Please sign in to comment.
x86: allow user mode to induce kernel oops
Before, attempting to induce a kernel oops would instead lead to a general protection fault as the interrupt vector was at DPL=0. Now we allow by setting DPL=3. We restrict the allowable reason codes to either stack overflows or kernel oops; we don't want user mode to be able to create a kernel panic, or fake some other kind of exception. Fixes an issue where the stack canary test case was triggering a GPF instead of a stack check exception on x86. Signed-off-by: Andrew Boie <email@example.com>
- Loading branch information...