From: Linus Torvalds Date: Sat, 10 Apr 2010 22:22:30 +0000 (-0700) Subject: vma_adjust: fix the copying of anon_vma chains X-Git-Tag: v2.6.34-rc4~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=287d97ac032136724143cde8d5964b414d562ee3;p=pandora-kernel.git vma_adjust: fix the copying of anon_vma chains When we move the boundaries between two vma's due to things like mprotect, we need to make sure that the anon_vma of the pages that got moved from one vma to another gets properly copied around. And that was not always the case, in this rather hard-to-follow code sequence. Clarify the code, and fix it so that it copies the anon_vma from the right source. Reviewed-by: Rik van Riel Acked-by: Johannes Weiner Tested-by: Borislav Petkov [ "Yeah, not so much this one either" ] Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed