]> git.hungrycats.org Git - linux/commit
[PATCH] Fix for 32-bit execve() error path
authorAndrew Morton <akpm@osdl.org>
Tue, 20 Jan 2004 11:10:20 +0000 (03:10 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 20 Jan 2004 11:10:20 +0000 (03:10 -0800)
commit65b7ee8a388974fbc6763d17b59855f2e221a6dc
tree943b701a452cbbfe97b33d905c5beaae2032f331
parentd050b3941dc3149f8c45c4b2bf8b105db524baca
[PATCH] Fix for 32-bit execve() error path

From: David Gibson <david@gibson.dropbear.id.au>

The patch below fixes a bug in ppc64's 32-bit execve() path.  It duplicates
logic already in the normal fs/exec.c do_execve() to avoid dropping a NULL
mm.  The bprm.mm becomes NULL once the exec passes the "point of no
return".  Without this patch a failure past that point (e.g.  mmap()
failure) will cause an oops, with it just a killed process.
arch/ppc64/kernel/sys_ppc32.c