+ mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: + mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch added to -mm tree
To: heiko.carstens@xxxxxxxxxx,catalin.marinas@xxxxxxx,cmetcalf@xxxxxxxxxx,schwidefsky@xxxxxxxxxx,sinaelgl@xxxxxxxxx,walken@xxxxxxxxxx,will.deacon@xxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Thu, 10 Oct 2013 15:48:11 -0700


The patch titled
     Subject: mmap: arch_get_unmapped_area(): use proper mmap base for bottom up direction
has been added to the -mm tree.  Its filename is
     mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Subject: mmap: arch_get_unmapped_area(): use proper mmap base for bottom up direction

This is more or less the generic variant of 41aacc1eea ("x86
get_unmapped_area: Access mmap_legacy_base through mm_struct member").

So effectively architectures which use an own arch_pick_mmap_layout()
implementation but call the generic arch_get_unmapped_area() now can also
randomize their mmap_base.

All architectures which have an own arch_pick_mmap_layout() and call the
generic arch_get_unmapped_area() (arm64, s390, tile) currently set
mmap_base to TASK_UNMAPPED_BASE.  This is also true for the generic
arch_pick_mmap_layout() function.  So this change is a no-op currently.

Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
Cc: Radu Caragea <sinaelgl@xxxxxxxxx>
Cc: Michel Lespinasse <walken@xxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Will Deacon <will.deacon@xxxxxxx>
Cc: Chris Metcalf <cmetcalf@xxxxxxxxxx>
Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/mmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/mmap.c~mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction mm/mmap.c
--- a/mm/mmap.c~mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction
+++ a/mm/mmap.c
@@ -1872,7 +1872,7 @@ arch_get_unmapped_area(struct file *filp
 
 	info.flags = 0;
 	info.length = len;
-	info.low_limit = TASK_UNMAPPED_BASE;
+	info.low_limit = mm->mmap_base;
 	info.high_limit = TASK_SIZE;
 	info.align_mask = 0;
 	return vm_unmapped_area(&info);
_

Patches currently in -mm which might be from heiko.carstens@xxxxxxxxxx are

origin.patch
x86-add-missed-pgtable_pmd_page_ctor-dtor-calls-for-preallocated-pmds.patch
s390-handle-pgtable_page_ctor-fail.patch
mm-dynamically-allocate-page-ptl-if-it-cannot-be-embedded-to-struct-page.patch
mmap-arch_get_unmapped_area-use-proper-mmap-base-for-bottom-up-direction.patch
s390-mmap-randomize-mmap-base-for-bottom-up-direction.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux