diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2013-08-06 13:50:54 -0700 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2013-08-07 18:17:28 -0700 |
commit | d3840b26614d8ce3db53c98061d9fcb1b9ccb0dd (patch) | |
tree | af0294fc67a471ebf56404e456f2c344ef27345e /arch/m32r | |
parent | 240e99cbd00aa541b572480e3ea7ecb0d480bc79 (diff) |
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 <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions