]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: allow arch code to control the user page table ceiling
authorHugh Dickins <hughd@google.com>
Sat, 23 Mar 2013 02:31:40 +0000 (13:31 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Mar 2013 05:10:56 +0000 (16:10 +1100)
commit0e4d56c1be3010da95b177e0fd44943b605722ed
treedffdea8fd32b3b4d7529f15c906b255f8d8c0832
parent5c2170498ddc8a7cd20b8d367409b0ed1fd618ca
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