]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: avoid shared libraries mapped over guest memory
authorRonald G. Minnich <rminnich@gmail.com>
Thu, 9 Aug 2007 11:07:24 +0000 (21:07 +1000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 9 Aug 2007 15:14:56 +0000 (08:14 -0700)
commit2235bee972b6adb7b1ded594e7c65736c9102ba4
tree8a79cd195751b325e4972ef1b53ff2cc5a9eb5fe
parentc64211983d8af2ec8a68e46b9d5dee958cfc201e
lguest: avoid shared libraries mapped over guest memory

Some versions of ld.so mmap the shared libraries right in over guest
memory, so compile lguest statically by default.

[ 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

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/lguest/Makefile