From: Linus Torvalds Date: Wed, 13 Apr 2011 15:07:28 +0000 (-0700) Subject: vm: fix vm_pgoff wrap in stack expansion X-Git-Tag: v2.6.39-rc4~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a626ca6a6564;p=pandora-kernel.git vm: fix vm_pgoff wrap in stack expansion Commit 982134ba6261 ("mm: avoid wrapping vm_pgoff in mremap()") fixed the case of a expanding mapping causing vm_pgoff wrapping when you used mremap. But there was another case where we expand mappings hiding in plain sight: the automatic stack expansion. This fixes that case too. This one also found by Robert Święcki, using his nasty system call fuzzer tool. Good job. Reported-and-tested-by: Robert Święcki Cc: stable@kernel.org Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed