Re: [PATCH v3 5/5] KVM: Implement ring-based dirty memory tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 03/02/2017 12:06, Cao, Lei wrote:
> +struct page *kvm_gfn_ring_get_page(struct kvm_gfn_ring *ring, u32 i)
> +{
> +	return vmalloc_to_page((void *)ring->dirty_list+i*PAGE_SIZE);
> +
> +}

Oops, you need range checking here.  Otherwise you have a gaping kernel
memory leak! :)

Paolo



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux