OSDN Git Service

Map the vsyscall page with _PAGE_USER
authorBorislav Petkov <bp@suse.de>
Thu, 4 Jan 2018 16:42:45 +0000 (17:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2018 08:29:54 +0000 (09:29 +0100)
commitbeca4e2d994464f5a0f629c1ff91b98398725efa
tree7f6e55a819d6b56128715a93de16a7d67ae3afdd
parent47f3cea393ab5188d1a1409259e71099314dc530
Map the vsyscall page with _PAGE_USER

This needs to happen early in kaiser_pagetable_walk(), before the
hierarchy is established so that _PAGE_USER permission can be really
set.

A proper fix would be to teach kaiser_pagetable_walk() to update those
permissions but the vsyscall page is the only exception here so ...

Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Hugh Dickins <hughd@google.com>
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