Re: [Qemu-devel] [PATCH 1/1] x86: enforce DPL checking on task gate switches

2014-05-14 Thread Richard Henderson
On 05/13/2014 02:12 PM, Alex Zuepke wrote: > x86 software emulation (non-KVM mode) does not check privilege levels on task > gate switches. > An "int $8" in user mode panics any OS kernel by a forbidden direct call into > the double fault handler. > > This testcase crashes a Linux kernel with a

[Qemu-devel] [PATCH 1/1] x86: enforce DPL checking on task gate switches

2014-05-14 Thread Alex Zuepke
x86 software emulation (non-KVM mode) does not check privilege levels on task gate switches. An "int $8" in user mode panics any OS kernel by a forbidden direct call into the double fault handler. This testcase crashes a Linux kernel with a double fault panic: $ cat test.c int main(void) {