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.