x86/vsyscall: Add __ro_after_init to global variables
authorAndy Lutomirski <luto@kernel.org>
Thu, 27 Jun 2019 04:45:08 +0000 (21:45 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jun 2019 22:04:40 +0000 (00:04 +0200)
commit441cedab2dfca18fe4983cbc795de04536ed421e
treeedc94bb896bc62f7504668f09a720a947e20ce57
parent625b7b7f79c66626fb2b7687fc1a58309a57edd5
x86/vsyscall: Add __ro_after_init to global variables

The vDSO is only configurable by command-line options, so make its
global variables __ro_after_init.  This seems highly unlikely to
ever stop an exploit, but it's nicer anyway.

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/a386925835e49d319e70c4d7404b1f6c3c2e3702.1561610354.git.luto@kernel.org
arch/x86/entry/vsyscall/vsyscall_64.c