From: Rasmus Villemoes Date: Mon, 8 Jul 2013 22:59:48 +0000 (-0700) Subject: mm: mremap: validate input before taking lock X-Git-Tag: v3.11-rc1~67^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a2458a633d4b3c9e0eae506da40cf44dc075314;p=pandora-kernel.git mm: mremap: validate input before taking lock This patch is very similar to commit 84d96d897671 ("mm: madvise: complete input validation before taking lock"): perform some basic validation of the input to mremap() before taking the ¤t->mm->mmap_sem lock. This also makes the MREMAP_FIXED => MREMAP_MAYMOVE dependency slightly more explicit. Signed-off-by: Rasmus Villemoes Cc: KOSAKI Motohiro Cc: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed