zephyr/arch/x86
Andrew Boie caa47e6c97 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 <andrew.p.boie@intel.com>
2019-07-16 18:09:49 -07:00
..
core x86: allow user mode to induce kernel oops 2019-07-16 18:09:49 -07:00
include arch/x86: refactor offsets_short_arch.h 2019-07-03 20:01:17 -04:00
CMakeLists.txt arch/x86: split CMakeLists.txt into subarch-specific files 2019-06-17 16:31:37 -04:00
Kconfig arch/x86: split Kconfig files by sub-architecture 2019-06-17 16:31:37 -04:00
gen_gdt.py x86: gen_gdt.py: expand doctsring 2019-02-25 13:15:37 -08:00
gen_idt.py x86: gen_idt.py: add docstring 2019-02-25 13:15:37 -08:00
gen_mmu_x86.py docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
ia32.cmake arch/x86: split CMakeLists.txt into subarch-specific files 2019-06-17 16:31:37 -04:00
x64.cmake arch/x86: split CMakeLists.txt into subarch-specific files 2019-06-17 16:31:37 -04:00