]> 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>
Wed, 20 Mar 2013 04:07:28 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:33:54 +0000 (16:33 +1100)
commitd28deb5d83c2c660481acb615bbd7d51120f42b2
tree87a5d1101be86800041d3dddd17cca1f94779786
parent8ad94fede449a539d3825984b5098808e2a039fc
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