+ lguest-ldso-on-fc7-is-mmaping-shared-libraries-right-in-over-guest-memory.patch added to -mm tree

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

 



The patch titled
     lguest: ld.so on FC7 is mmap'ing shared libraries right in over guest memory
has been added to the -mm tree.  Its filename is
     lguest-ldso-on-fc7-is-mmaping-shared-libraries-right-in-over-guest-memory.patch

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

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: lguest: ld.so on FC7 is mmap'ing shared libraries right in over guest memory
From: Ronald G. Minnich <rminnich@xxxxxxxxx>

[ FC7 maps shared libraries very low, where the launcher maps guest's physical
memory.  Quick fix is to link Launcher static, real fix is for 2.6.24.  ]

-static is a simple fix.  I expect this problem will be more common than we
like, as different distro's make different "improvements" to ld.so

[Arjan said:

  this description is incorrect; it's not an ld.so change that causes the
  low mapping.

  It's a command line option to the prelink program (which is in most
  distributions) that makes it use the entire address space, not just the
  higher bits...."]

Signed-off-by: Ronald G. Minnich <rminnich@xxxxxxxxx>
Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 Documentation/lguest/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN Documentation/lguest/Makefile~lguest-ldso-on-fc7-is-mmaping-shared-libraries-right-in-over-guest-memory Documentation/lguest/Makefile
--- a/Documentation/lguest/Makefile~lguest-ldso-on-fc7-is-mmaping-shared-libraries-right-in-over-guest-memory
+++ a/Documentation/lguest/Makefile
@@ -13,7 +13,9 @@ LGUEST_GUEST_TOP := ($(CONFIG_PAGE_OFFSE
 
 CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -Wl,-T,lguest.lds
 LDLIBS:=-lz
-
+# Removing this works for some versions of ld.so (eg. Ubuntu Feisty) and
+# not others (eg. FC7).
+LDFLAGS+=-static
 all: lguest.lds lguest
 
 # The linker script on x86 is so complex the only way of creating one
_

Patches currently in -mm which might be from rminnich@xxxxxxxxx are

lguest-ldso-on-fc7-is-mmaping-shared-libraries-right-in-over-guest-memory.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