aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ipc
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2019-06-26 21:45:05 -0700
committerThomas Gleixner <tglx@linutronix.de>2019-06-28 00:04:39 +0200
commite0a446ce394a7915f2ffc03f9bb610c5ac4dbbf1 (patch)
treea2458144d3b24a798ebe5632e8efdb9002df5154 /ipc
parentx86/vsyscall: Show something useful on a read fault (diff)
downloadwireguard-linux-e0a446ce394a7915f2ffc03f9bb610c5ac4dbbf1.tar.xz
wireguard-linux-e0a446ce394a7915f2ffc03f9bb610c5ac4dbbf1.zip
x86/vsyscall: Document odd SIGSEGV error code for vsyscalls
Even if vsyscall=none, user page faults on the vsyscall page are reported as though the PROT bit in the error code was set. Add a comment explaining why this is probably okay and display the value in the test case. While at it, explain why the behavior is correct with respect to PKRU. Modify also the selftest to print the odd error code so that there is a way to demonstrate the odd behaviour. If anyone really cares about more accurate emulation, the behaviour could be changed. But that needs a real good justification. 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> Cc: Borislav Petkov <bp@alien8.de> Cc: Kernel Hardening <kernel-hardening@lists.openwall.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lkml.kernel.org/r/75c91855fd850649ace162eec5495a1354221aaa.1561610354.git.luto@kernel.org
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions