]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: allow arch code to control the user page table ceiling
authorHugh Dickins <hughd@google.com>
Wed, 20 Mar 2013 04:07:28 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:52 +0000 (15:22 +1100)
commitd500e9aa777eb5711b69aab7d739b85c806b683c
tree857f1193b86684f71ea5cc085b78b94dba5dc8dc
parent985ce4df6cecdc4341bddec3732d3cc9e46b61b0
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: Russell King <linux@arm.linux.org.uk>
Cc: <stable@vger.kernel.org> [3.3+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c
include/asm-generic/pgtable.h
mm/mmap.c