]> git.karo-electronics.de Git - karo-tx-linux.git/commit
alpha: unbreak OSF/1 (a.out) binaries
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Thu, 24 Apr 2008 12:54:50 +0000 (16:54 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 May 2008 21:44:39 +0000 (14:44 -0700)
commit6ba675d46b278f478a22639b1c25b1476afcc351
tree43a88e46d9d040217e6f2c42648405c48ebc8b00
parentd4aa5e3e3e76f3f8c54c7ab1259feabbd4b7da32
alpha: unbreak OSF/1 (a.out) binaries

commit 2444e56b0c08e6f3e3877583841a1213e3263d98 upstream

OSF/1 brk(2) was broken by following one-liner in sys_brk()
(commit 4cc6028d4040f95cdb590a87db478b42b8be0508):

- if (brk < mm->end_code)
+ if (brk < mm->start_brk)
goto out;

The problem is that osf_set_program_attributes()
does update mm->end_code, but not mm->start_brk,
which still contains inappropriate value left from
binary loader, so brk() always fails.

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/alpha/kernel/osf_sys.c