OSDN Git Service

vsyscall: Fix permissions for emulate mode with KAISER/PTI
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Fri, 26 Jan 2018 16:23:02 +0000 (16:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 11:55:53 +0000 (12:55 +0100)
commit9a0be5afbfbb1d14efdc98a6615fc52082243bd1
treec108533092e8c1db2c8e5d3473abc86956f4c1f1
parent1be7d46e775c2fbec57bbce7190b66fbb7c58d1b
vsyscall: Fix permissions for emulate mode with KAISER/PTI

The backport of KAISER to 4.4 turned vsyscall emulate mode into native
mode.  Add a vsyscall_pgprot variable to hold the correct page
protections, like Borislav and Hugh did for 3.2 and 3.18.

Cc: Borislav Petkov <bp@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/entry/vsyscall/vsyscall_64.c
arch/x86/include/asm/vsyscall.h
arch/x86/mm/kaiser.c