From: Christoffer Dall Date: Tue, 6 Aug 2013 20:50:54 +0000 (-0700) Subject: ARM: KVM: Fix unaligned unmap_range leak X-Git-Tag: v3.11-rc7~22^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3840b26614d8ce3db53c98061d9fcb1b9ccb0dd;p=pandora-kernel.git ARM: KVM: Fix unaligned unmap_range leak The unmap_range function did not properly cover the case when the start address was not aligned to PMD_SIZE or PUD_SIZE and an entire pte table or pmd table was cleared, causing us to leak memory when incrementing the addr. The fix is to always move onto the next page table entry boundary instead of adding the full size of the VA range covered by the corresponding table level entry. Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed