Commit 3c378158 authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Linus Torvalds

mm: fix exit_mmap BUG() on a.out binary exit

The problem was introduced by commit "mm: variable length argument
support" (b6a2fea3)
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: default avatarIvan Kokshaysky <>
Cc: Ollie Wild <>
Acked-by: default avatarPeter Zijlstra <>
Cc: Andrew Morton <>
Cc: Hugh Dickins <>
Cc: Adrian Bunk <>
Signed-off-by: default avatarLinus Torvalds <>
parent fbdcf18d
......@@ -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;
current->flags &= ~PF_FORKNOEXEC;
#ifdef __sparc__
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment