x86_64, vsyscall: Turn vsyscalls all the way off when vsyscall==none
authorAndy Lutomirski <luto@amacapital.net>
Wed, 29 Oct 2014 21:33:45 +0000 (14:33 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Nov 2014 20:44:57 +0000 (21:44 +0100)
commit87983c66bc02c9cd8e4a42e7924435145d52bb13
tree55948cf6d9d58e55cad84fdfb276819fba65bf6b
parente76b027e6408f5570dc940b731ec9ae870c6188a
x86_64, vsyscall: Turn vsyscalls all the way off when vsyscall==none

I see no point in having an unusable read-only page sitting at
0xffffffffff600000 when vsyscall=none. Instead, skip mapping it and
remove it from /proc/PID/maps.

I kept the ratelimited warning when programs try to use a vsyscall
in this mode, since it may help admins avoid confusion.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Link: http://lkml.kernel.org/r/0dddbadc1d4e3bfbaf887938ff42afc97a7cc1f2.1414618407.git.luto@amacapital.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/vsyscall_64.c