From: Nick Piggin Date: Sat, 2 Feb 2008 02:08:53 +0000 (+0100) Subject: vm audit: add VM_DONTEXPAND to mmap for drivers that need it X-Git-Tag: v2.6.25-rc1~1063 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f98735c9c24ea1f0d40a364d4e63611b689b795;p=pandora-kernel.git vm audit: add VM_DONTEXPAND to mmap for drivers that need it Drivers that register a ->fault handler, but do not range-check the offset argument, must set VM_DONTEXPAND in the vm_flags in order to prevent an expanding mremap from overflowing the resource. I've audited the tree and attempted to fix these problems (usually by adding VM_DONTEXPAND where it is not obvious). Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed