summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJan Beulich2006-01-11 22:42:08 +0100
committerLinus Torvalds2006-01-12 04:01:10 +0100
commit0a5215882166dd33a95b313637dd318e4c143113 (patch)
tree00b3211382219459ddebdc8bcde2f3881a657b08 /arch
parent[PATCH] x86_64: Separate CONFIG_UNWIND_INFO from CONFIG_DEBUG_INFO (diff)
downloadkernel-qcow2-linux-0a5215882166dd33a95b313637dd318e4c143113.tar.gz
kernel-qcow2-linux-0a5215882166dd33a95b313637dd318e4c143113.tar.xz
kernel-qcow2-linux-0a5215882166dd33a95b313637dd318e4c143113.zip
[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: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index bf337f493189..7ecc72a48cdd 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -881,8 +881,8 @@ void __init trap_init(void)
set_intr_gate_ist(1,&debug,DEBUG_STACK);
set_intr_gate_ist(2,&nmi,NMI_STACK);
set_system_gate(3,&int3);
- set_system_gate(4,&overflow); /* int4-5 can be called from all */
- set_system_gate(5,&bounds);
+ set_system_gate(4,&overflow); /* int4 can be called from all */
+ set_intr_gate(5,&bounds);
set_intr_gate(6,&invalid_op);
set_intr_gate(7,&device_not_available);
set_intr_gate_ist(8,&double_fault, DOUBLEFAULT_STACK);