ARM: 7701/1: mm: Allow arch code to control the user page table ceiling
authorHugh Dickins <hughd@google.com>
Tue, 23 Apr 2013 10:20:35 +0000 (11:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Apr 2013 12:15:37 +0000 (13:15 +0100)
commita0a9434dd50aac5971d63207ff1e25e69c9abdb3
tree64af128498e7b5ff5944dcb43a1a499da583a906
parentb361d61dc1aaa9bdac0a0995e443c12146d916fd
ARM: 7701/1: mm: Allow arch code to control the user page table ceiling

On architectures where a pgd entry may be shared between user and kernel
(e.g. ARM+LPAE), freeing page tables needs a ceiling other than 0. This
patch introduces a generic USER_PGTABLES_CEILING that arch code can
override. It is the responsibility of the arch code setting the ceiling
to ensure the complete freeing of the page tables (usually in
pgd_free()).

[catalin.marinas@arm.com: commit log; shift_arg_pages(), asm-generic/pgtables.h changes]

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@vger.kernel.org> # 3.3+
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
fs/exec.c
include/asm-generic/pgtable.h
mm/mmap.c
This page took 0.025076 seconds and 5 git commands to generate.