]> git.ipfire.org Git - thirdparty/qemu.git/commit
rbd: shift byte count as a 64-bit value
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 Oct 2016 19:58:58 +0000 (21:58 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 23:19:00 +0000 (18:19 -0500)
commit857efecf91f41105f919844ef71992e247817e3e
tree773954a9585f5a5e4e16741b054efd19ee49cdc4
parent99837b0d363a94c4fda1789043128aa372773fd7
rbd: shift byte count as a 64-bit value

Otherwise, reads of more than 2GB fail.  Until commit
7bbca9e290a9c7c217b5a24fc6094e91e54bd05d, reads of 2^41
bytes succeeded at least theoretically.

In fact, pdiscard ought to receive a 64-bit integer as the
count for the same reason.

Reported by Coverity.

Fixes: 7bbca9e290a9c7c217b5a24fc6094e91e54bd05d
Cc: qemu-stable@nongnu.org
Cc: kwolf@redhat.com
Cc: eblake@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit e948f663e9334249c394b88926addcdd3f9e35cd)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/rbd.c