Re: [PATCH] kvm: Disallow wraparound in kvm_gfn_to_hva_cache_init

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

 



2018-12-17 13:53-0800, Jim Mattson:
> Previously, in the case where (gpa + len) wrapped around, the entire
> region was not validated, as the comment claimed. It doesn't actually
> seem that wraparound should be allowed here at all.
> 
> Furthermore, since some callers don't check the return code from this
> function, it seems prudent to clear ghc->memslot in the event of an
> error.
> 
> Fixes: 8f964525a121f ("KVM: Allow cross page reads and writes from cached translations.")
> Reported-by: Cfir Cohen <cfir@xxxxxxxxxx>
> Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
> Reviewed-by: Cfir Cohen <cfir@xxxxxxxxxx>
> Reviewed-by: Marc Orr <marcorr@xxxxxxxxxx>
> Cc: Andrew Honig <ahonig@xxxxxxxxxx>
> ---

Queued, thanks.



[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