diff options
| author | Jim Mattson <[email protected]> | 2018-12-14 14:34:43 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2018-12-21 11:28:22 +0100 |
| commit | 7a86dab8cf2f0fdf508f3555dddfc236623bff60 (patch) | |
| tree | db2444964b752655491d4a27e012f90d227f110f /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f1b9dd5eb86cec1fcf66aad17e7701d98d024a9a (diff) | |
kvm: Change offset in kvm_write_guest_offset_cached to unsigned
Since the offset is added directly to the hva from the
gfn_to_hva_cache, a negative offset could result in an out of bounds
write. The existing BUG_ON only checks for addresses beyond the end of
the gfn_to_hva_cache, not for addresses before the start of the
gfn_to_hva_cache.
Note that all current call sites have non-negative offsets.
Fixes: 4ec6e8636256 ("kvm: Introduce kvm_write_guest_offset_cached()")
Reported-by: Cfir Cohen <[email protected]>
Signed-off-by: Jim Mattson <[email protected]>
Reviewed-by: Cfir Cohen <[email protected]>
Reviewed-by: Peter Shier <[email protected]>
Reviewed-by: Krish Sadhukhan <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions