block/export: port virtio-blk read/write range check
commit05ae4e674e3d47342a7660ae7bc55b393e09f4c7
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Feb 2021 14:46:53 +0000 (23 14:46 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 8 Mar 2021 13:56:54 +0000 (8 14:56 +0100)
tree5c60b3bdf0125e43f6a5d9f8f31b3eae6ae5fd0f
parentdb4eadf9f10e19f864d70d1df3a90fbda31b8c06
block/export: port virtio-blk read/write range check

Check that the sector number and byte count are valid.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210223144653.811468-13-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/vhost-user-blk-server.c