提交 0a521588 编写于 作者: J Jan Beulich 提交者: Linus Torvalds

[PATCH] x86_64: fix bound check IDT gate

Other than apparently commonly assumed, the bound instruction does not
require the corresponding IDT entry to have DPL 3.
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 6e0c47ed
...@@ -881,8 +881,8 @@ void __init trap_init(void) ...@@ -881,8 +881,8 @@ void __init trap_init(void)
set_intr_gate_ist(1,&debug,DEBUG_STACK); set_intr_gate_ist(1,&debug,DEBUG_STACK);
set_intr_gate_ist(2,&nmi,NMI_STACK); set_intr_gate_ist(2,&nmi,NMI_STACK);
set_system_gate(3,&int3); set_system_gate(3,&int3);
set_system_gate(4,&overflow); /* int4-5 can be called from all */ set_system_gate(4,&overflow); /* int4 can be called from all */
set_system_gate(5,&bounds); set_intr_gate(5,&bounds);
set_intr_gate(6,&invalid_op); set_intr_gate(6,&invalid_op);
set_intr_gate(7,&device_not_available); set_intr_gate(7,&device_not_available);
set_intr_gate_ist(8,&double_fault, DOUBLEFAULT_STACK); set_intr_gate_ist(8,&double_fault, DOUBLEFAULT_STACK);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册