Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86-64: Remove vsyscall number 3 (venosys)

It just segfaults since April 2008 (a4928cff), so I'm pretty
sure that nothing uses it. And having an empty section makes
the linker script a bit fragile.

Signed-off-by: Andy Lutomirski <luto@mit.edu>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Jan Beulich <JBeulich@novell.com>
Cc: richard -rw- weinberger <richard.weinberger@gmail.com>
Cc: Mikael Pettersson <mikpe@it.uu.se>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Louis Rilling <Louis.Rilling@kerlabs.com>
Cc: Valdis.Kletnieks@vt.edu
Cc: pageexec@freemail.hu
Link: http://lkml.kernel.org/r/4a4abcf47ecadc269f2391a313576fe6d06acef7.1307292171.git.luto@mit.edu
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by

Andy Lutomirski and committed by
Ingo Molnar
bb5fe2f7 d319bb79

-9
-4
arch/x86/kernel/vmlinux.lds.S
··· 182 182 *(.vsyscall_2) 183 183 } 184 184 185 - .vsyscall_3 ADDR(.vsyscall_0) + 3072: AT(VLOAD(.vsyscall_3)) { 186 - *(.vsyscall_3) 187 - } 188 - 189 185 . = ALIGN(__vsyscall_0 + PAGE_SIZE, PAGE_SIZE); 190 186 191 187 #undef VSYSCALL_ADDR
-5
arch/x86/kernel/vsyscall_64.c
··· 209 209 return 0; 210 210 } 211 211 212 - static long __vsyscall(3) venosys_1(void) 213 - { 214 - return -ENOSYS; 215 - } 216 - 217 212 /* Assume __initcall executes before all user space. Hopefully kmod 218 213 doesn't violate that. We'll find out if it does. */ 219 214 static void __cpuinit vsyscall_set_cpu(int cpu)