Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3c378158d4cd2125b42fe2b8bb23d512fdff6fe6
Commit:     3c378158d4cd2125b42fe2b8bb23d512fdff6fe6
Parent:     fbdcf18df73758b2e187ab94678b30cd5f6ff9f9
Author:     Ivan Kokshaysky <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 20 11:47:07 2007 +0300
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Dec 20 07:49:53 2007 -0800

    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 <[EMAIL PROTECTED]>
    Cc: Ollie Wild <[EMAIL PROTECTED]>
    Acked-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Cc: Andrew Morton <[EMAIL PROTECTED]>
    Cc: Hugh Dickins <[EMAIL PROTECTED]>
    Cc: Adrian Bunk <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/binfmt_aout.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
index e176d19..7596e1e 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__
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to