]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86-64: Improve vsyscall emulation CS and RIP handling
authorAndy Lutomirski <luto@mit.edu>
Wed, 13 Jul 2011 13:24:09 +0000 (09:24 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 13 Jul 2011 18:22:55 +0000 (11:22 -0700)
commitc9712944b2a12373cb6ff8059afcfb7e826a6c54
tree73b58eddce6f56c32b90b5056032a504f3ae4f00
parent5cec93c216db77c45f7ce970d46283bcb1933884
x86-64: Improve vsyscall emulation CS and RIP handling

Three fixes here:
 - Send SIGSEGV if called from compat code or with a funny CS.
 - Don't BUG on impossible addresses.
 - Add a missing local_irq_disable.

This patch also removes an unused variable.

Signed-off-by: Andy Lutomirski <luto@mit.edu>
Link: http://lkml.kernel.org/r/6fb2b13ab39b743d1e4f466eef13425854912f7f.1310563276.git.luto@mit.edu
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/vsyscall.h
arch/x86/kernel/vsyscall_64.c