diff options
author | Jan Beulich <jbeulich@novell.com> | 2006-01-11 16:42:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:01:10 -0500 |
commit | 0a5215882166dd33a95b313637dd318e4c143113 (patch) | |
tree | 00b3211382219459ddebdc8bcde2f3881a657b08 /arch/x86_64/kernel/traps.c | |
parent | 6e0c47ede7b1473a4e2ab65a0fecf0385ab23c03 (diff) |
[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/x86_64/kernel/traps.c')
-rw-r--r-- | arch/x86_64/kernel/traps.c | 4 |
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) | |||
881 | set_intr_gate_ist(1,&debug,DEBUG_STACK); | 881 | set_intr_gate_ist(1,&debug,DEBUG_STACK); |
882 | set_intr_gate_ist(2,&nmi,NMI_STACK); | 882 | set_intr_gate_ist(2,&nmi,NMI_STACK); |
883 | set_system_gate(3,&int3); | 883 | set_system_gate(3,&int3); |
884 | set_system_gate(4,&overflow); /* int4-5 can be called from all */ | 884 | set_system_gate(4,&overflow); /* int4 can be called from all */ |
885 | set_system_gate(5,&bounds); | 885 | set_intr_gate(5,&bounds); |
886 | set_intr_gate(6,&invalid_op); | 886 | set_intr_gate(6,&invalid_op); |
887 | set_intr_gate(7,&device_not_available); | 887 | set_intr_gate(7,&device_not_available); |
888 | set_intr_gate_ist(8,&double_fault, DOUBLEFAULT_STACK); | 888 | set_intr_gate_ist(8,&double_fault, DOUBLEFAULT_STACK); |