x86/vsyscall: Show something useful on a read fault
authorAndy Lutomirski <luto@kernel.org>
Thu, 27 Jun 2019 04:45:04 +0000 (21:45 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jun 2019 22:04:39 +0000 (00:04 +0200)
commit918ce325098a4eef99daad7b6796da33cebaf03a
tree350e3c5a1bae0686cb0050a466b85917792e4b7f
parentbd49e16e3339f052fae05fb3e955c5db0c9c6445
x86/vsyscall: Show something useful on a read fault

Just segfaulting the application when it tries to read the vsyscall page in
xonly mode is not helpful for those who need to debug it.

Emit a hint.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: Jann Horn <jannh@google.com>
Link: https://lkml.kernel.org/r/8016afffe0eab497be32017ad7f6f7030dc3ba66.1561610354.git.luto@kernel.org
arch/x86/entry/vsyscall/vsyscall_64.c
arch/x86/include/asm/vsyscall.h
arch/x86/mm/fault.c