]> xenbits.xensource.com Git - xen.git/commit
x86/mm: Fix loop increment in paging_log_dirty_range()
authorTim Deegan <tim@xen.org>
Thu, 17 Jan 2013 12:43:26 +0000 (13:43 +0100)
committerTim Deegan <tim@xen.org>
Thu, 17 Jan 2013 12:43:26 +0000 (13:43 +0100)
commiteefac7560f9a23e9330c04fe50e1185a1739a18d
treeaffeab74879b4d5c34ac2393e74db9e3d0f36cc6
parentd4ea949bd1a13c2f93c36846ad389394ecbb8698
x86/mm: Fix loop increment in paging_log_dirty_range()

In 23417:53ef1f35a0f8 (the fix for XSA-27 / CVE-2012-5511), the
loop variable gets incremented twice, so the loop only clears every
second page of the bitmap.  This might cause the tools to think that
pages are dirty when they are not.

Reported-by: Steven Noonan <snoonan@amazon.com>
Reported-by: Matt Wilson <msw@amazon.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/paging.c