projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e0c47e
)
[PATCH] x86_64: fix bound check IDT gate
author
Jan Beulich
<jbeulich@novell.com>
Wed, 11 Jan 2006 21:42:08 +0000
(22:42 +0100)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:01:10 +0000
(19:01 -0800)
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>
arch/x86_64/kernel/traps.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86_64/kernel/traps.c
b/arch/x86_64/kernel/traps.c
index bf337f493189535f12f47f40b1ff93a94f4b26ff..7ecc72a48cddb626bff2de089294299c55e1f40c 100644
(file)
--- 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);