]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] binfmt_elf bss padding fix
authorakpm@osdl.org <akpm@osdl.org>
Tue, 11 Oct 2005 15:29:08 +0000 (08:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Oct 2005 16:46:54 +0000 (09:46 -0700)
commit502b33dd50e05d980560f45eec73b7ddb8c1a1ef
tree0d06e061a70b337627b7e83985d736c0b4f50f33
parent761773a40c5c949a6d0bb676dee984de18fb1b38
[PATCH] binfmt_elf bss padding fix

Nir Tzachar <tzachar@cs.bgu.ac.il> points out that if an ELF file specifies a
zero-length bss at a whacky address, we cannot load that binary because
padzero() tries to zero out the end of the page at the whacky address, and
that may not be writeable.

See also http://bugzilla.kernel.org/show_bug.cgi?id=5411

So teach load_elf_binary() to skip the bss settng altogether if the elf file
has a zero-length bss segment.

Cc: Roland McGrath <roland@redhat.com>
Cc: Daniel Jacobowitz <dan@debian.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/binfmt_elf.c