From: Marcelo Tosatti Date: Mon, 12 Apr 2010 17:39:51 +0000 Subject: Re: [PATCH] KVM: fix the handling of dirty bitmaps to avoid overflows Message-Id: <20100412173951.GA5614@amt.cnet> List-Id: References: <20100412193535.6c502695.yoshikawa.takuya@oss.ntt.co.jp> In-Reply-To: <20100412193535.6c502695.yoshikawa.takuya@oss.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ia64@vger.kernel.org On Mon, Apr 12, 2010 at 07:35:35PM +0900, Takuya Yoshikawa wrote: > This patch fixes a bug found by Avi during the review process > of my dirty bitmap related work. > > To ppc and ia64 people: > The fix is really simple but touches all architectures using > dirty bitmaps. So please check this will not suffer your part. > > => > Int is not long enough to store the size of a dirty bitmap. > > This patch fixes this problem with the introduction of a wrapper > function to calculate the sizes of dirty bitmaps. > > Note: in mark_page_dirty(), we have to consider the fact that > __set_bit() takes the offset as int, not long. > > Signed-off-by: Takuya Yoshikawa Applied, thanks.