aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-04-07 23:40:59 -0700
committerPaolo Bonzini <[email protected]>2020-04-14 10:39:57 -0400
commit97daa028f3f621adff2c4f7b15fe0874e5b5bd6c (patch)
tree30c1179dba211ba92a3763c21dfbb11ee8aee3d8 /tools/perf/scripts/python/export-to-sqlite.py
parentb6467ab142b708dd076f6186ca274f14af379c72 (diff)
KVM: s390: Return last valid slot if approx index is out-of-bounds
Return the index of the last valid slot from gfn_to_memslot_approx() if its binary search loop yielded an out-of-bounds index. The index can be out-of-bounds if the specified gfn is less than the base of the lowest memslot (which is also the last valid memslot). Note, the sole caller, kvm_s390_get_cmma(), ensures used_slots is non-zero. Fixes: afdad61615cc3 ("KVM: s390: Fix storage attributes migration with memory slots") Cc: [email protected] # 4.19.x: 0774a964ef56: KVM: Fix out of range accesses to memslots Cc: [email protected] # 4.19.x Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions