Skip to contentSkip to conversation

munmap/truncate race fixes

GIT PULL Al Viro 1 participant 1 message Mar 21, 2012 Memory management

lore
Share & tools
lore

Al Viro

author
#0 lore raw

Fixes for racy use of unmap_vmas() on truncate-related codepaths.
Please, pull from
git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git vm

Shortlog:
Al Viro (6):
VM: unmap_page_range() can return void
VM: can't go through the inner loop in unmap_vmas() more than once...
VM: make zap_page_range() return void
VM: don't bother with feeding upper limit to tlb_finish_mmu() in exit_mmap()
VM: make unmap_vmas() return void
VM: make zap_page_range() callers that act on a single VMA use separate helper

Diffstat:

 include/linux/mm.h |    4 +-
 mm/memory.c        |  133 +++++++++++++++++++++++++++++++---------------------
 mm/mmap.c          |    5 +-
 3 files changed, 84 insertions(+), 58 deletions(-)