]> git.neil.brown.name Git - history.git/commit
Fix exec_mmap() to release the MM while we still have it active,
authorLinus Torvalds <torvalds@home.transmeta.com>
Thu, 9 Jan 2003 15:21:03 +0000 (07:21 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 9 Jan 2003 15:21:03 +0000 (07:21 -0800)
commit03a85f8e25d52e15112eb5e146e2766337217ed5
tree1db25f2609646decf638d470b0b9e91dfb1ea5ff
parent60e7fd5ede56305f4f05d24c4ae2b5491767efe6
Fix exec_mmap() to release the MM while we still have it active,
to properly de-activate it and make the child_tid logic work
correctly.

Clear %fs/%gs in deactivate_mm() on x86, since our LDT will no
longer be valid after this.

Update mm_release() to deactivate MM state before releasing,
and avoid the expensive child_tid FUTEX if we're the last user
of the MM.
24 files changed:
fs/exec.c
include/asm-alpha/mmu_context.h
include/asm-arm/mmu_context.h
include/asm-cris/mmu_context.h
include/asm-i386/mmu_context.h
include/asm-ia64/mmu_context.h
include/asm-m68k/mmu_context.h
include/asm-m68knommu/mmu_context.h
include/asm-mips/mmu_context.h
include/asm-mips64/mmu_context.h
include/asm-parisc/mmu_context.h
include/asm-ppc/mmu_context.h
include/asm-ppc64/mmu_context.h
include/asm-s390/mmu_context.h
include/asm-s390x/mmu_context.h
include/asm-sh/mmu_context.h
include/asm-sparc/mmu_context.h
include/asm-sparc64/mmu_context.h
include/asm-um/mmu_context.h
include/asm-v850/mmu_context.h
include/asm-x86_64/mmu_context.h
include/linux/sched.h
kernel/exit.c
kernel/fork.c