From: Ivan Kokshaysky Date: Thu, 20 Dec 2007 08:47:07 +0000 (+0300) Subject: mm: fix exit_mmap BUG() on a.out binary exit X-Git-Tag: v2.6.24-rc6~5 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3c378158d4cd2125b42fe2b8bb23d512fdff6fe6;p=linux-2.6-omap-h63xx.git mm: fix exit_mmap BUG() on a.out binary exit The problem was introduced by commit "mm: variable length argument support" (b6a2fea39318e43fee84fa7b0b90d68bed92d2ba) as it didn't update fs/binfmt_aout.c like other binfmt's. I noticed that on alpha when accidentally launched old OSF/1 Acrobat Reader binary. Obviously, other architectures are affected as well. Signed-off-by: Ivan Kokshaysky Cc: Ollie Wild Acked-by: Peter Zijlstra Cc: Andrew Morton Cc: Hugh Dickins Cc: Adrian Bunk Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c index e176d195e7e..7596e1e94cd 100644 --- a/fs/binfmt_aout.c +++ b/fs/binfmt_aout.c @@ -319,7 +319,6 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs) current->mm->free_area_cache = current->mm->mmap_base; current->mm->cached_hole_size = 0; - current->mm->mmap = NULL; compute_creds(bprm); current->flags &= ~PF_FORKNOEXEC; #ifdef __sparc__