diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2013-07-09 00:59:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 19:33:20 +0200 |
commit | 9a2458a633d4b3c9e0eae506da40cf44dc075314 (patch) | |
tree | 6212adc65070486edc212587c8f3a16452d810ec /mm/memcontrol.c | |
parent | drivers/iommu/msm_iommu_dev.c: fix leak and clean up error paths (diff) | |
download | linux-9a2458a633d4b3c9e0eae506da40cf44dc075314.tar.xz linux-9a2458a633d4b3c9e0eae506da40cf44dc075314.zip |
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 <linux@rasmusvillemoes.dk>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions