OSDN Git Service

ARM: make vectors page inaccessible from userspace
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 31 Jul 2013 20:58:56 +0000 (21:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:20 +0000 (18:35 -0700)
commit75bc4446e0d553aceeb632ae05878786d6760e47
treeb4ddcbc70fcadad7ccca9bca9f994b1619e9b0c0
parenta5510daad56d3b9738d475957750db9d4fc607a9
ARM: make vectors page inaccessible from userspace

commit a5463cd3435475386cbbe7b06e01292ac169d36f upstream.

If kuser helpers are not provided by the kernel, disable user access to
the vectors page.  With the kuser helpers gone, there is no reason for
this page to be visible to userspace.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/page.h
arch/arm/kernel/process.c
arch/arm/mm/mmu.c