]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86_64: Ignore compat mode SYSCALL when IA32_EMULATION is not defined
authorAndi Kleen <ak@suse.de>
Sat, 23 Jun 2007 00:29:25 +0000 (02:29 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 23 Jun 2007 01:41:19 +0000 (18:41 -0700)
commit75154f402ef18e459ff97ddece25656b6c2b329c
tree6757b77ee2c712c4b64f334ff8c5b1a41a64083b
parente2f1f19272f8de0374ad297b9806f8b6509e0013
x86_64: Ignore compat mode SYSCALL when IA32_EMULATION is not defined

Previously a program could switch to a compat mode segment and then
execute SYSCALL and it would jump to an uninitialized MSR and crash
the kernel.

Instead supply a dummy target for this case.

Pointed out by Jan Beulich

Cc: jbeulich@novell.com
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/kernel/entry.S
arch/x86_64/kernel/setup64.c