summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.headersinst
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2018-12-17 13:53:33 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-12-21 11:28:22 +0100
commitf1b9dd5eb86cec1fcf66aad17e7701d98d024a9a (patch)
treea3905b1d27e8e4514953b4f0aa1eec705fa30afd /scripts/Makefile.headersinst
parentba7424b200d347fbbf9fadecaffb2a0feb740039 (diff)
downloadblackbird-obmc-linux-f1b9dd5eb86cec1fcf66aad17e7701d98d024a9a.tar.gz
blackbird-obmc-linux-f1b9dd5eb86cec1fcf66aad17e7701d98d024a9a.zip
kvm: Disallow wraparound in kvm_gfn_to_hva_cache_init
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@google.com> Signed-off-by: Jim Mattson <jmattson@google.com> Reviewed-by: Cfir Cohen <cfir@google.com> Reviewed-by: Marc Orr <marcorr@google.com> Cc: Andrew Honig <ahonig@google.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'scripts/Makefile.headersinst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud