]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: check for out of bounds I/O in all forms of read/write
authorJosh Durgin <josh.durgin@dreamhost.com>
Sat, 9 Apr 2011 00:38:07 +0000 (17:38 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Sat, 9 Apr 2011 00:39:11 +0000 (17:39 -0700)
commit46c761fa931d7ad31d19b1c04ef138c9c2f7cb26
tree6f2146fe05a1e59c9558e141a3ba524d33d5acb8
parente34078b2ed73a6153599eb1223f80c20363a91a5
librbd: check for out of bounds I/O in all forms of read/write

This was found by qemu-io tests, which tried to read and write past
the end of an rbd image. The test hung waiting for a completion that
was never scheduled, since it did not check the return value of
rbd_aio_write.

Reported-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/librbd.cc