]> git.ipfire.org Git - thirdparty/qemu.git/commit
iscsi: assert that sectors are aligned to LUN blocksize
authorPeter Lieven <pl@kamp.de>
Thu, 11 Jul 2013 12:16:27 +0000 (14:16 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 00:15:26 +0000 (19:15 -0500)
commit7fbd2301a4b40d457fd5905733fff70c7115362b
treefce043d5a5e4b468ace4bbd29dbf10db4fe0c32c
parent404fbe47437144a6eae4bf9eef32ac9a5a1ccaf6
iscsi: assert that sectors are aligned to LUN blocksize

if the blocksize of an iSCSI LUN is bigger than the BDRV_SECTOR_SIZE
it is possible that sector_num or nb_sectors are not correctly
aligned.

to avoid corruption we fail requests which are misaligned.

Signed-off-by: Peter Lieven <pl@kamp.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 91bea4e2bb1a5f7954a3b3a4f2e28e96bd25c458)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/iscsi.c