]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite983b4779b3c95f6aa4516f7abf8858ed2a9ed59
tree64af128498e7b5ff5944dcb43a1a499da583a906
parent59badd089c4eae9bafd651a39dc1a9f6d5edefc5
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