[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi
From: |
Ronnie Sahlberg |
Subject: |
[Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi |
Date: |
Thu, 20 Jun 2013 19:32:34 -0700 |
Stefan, List
Please find a patch that fixes the crashes for using virtio with libiscsi.
The problem was that block/iscsi.c always assumed we got a plain buffer to read
data into, and when we got an iovector array instead we would overwrite
pointers with garbage and crash.
Since we can get iovectors for the write case as well I have added a fix for
when the guest is writing data to the target to handle the iovector case as
well.
The new calls added are not protected with (LIBISCSI_FEATURE_IOVECTOR) checks
since anyone building a new/current version of qemu should probably also build
against a current libiscsi.
I will send patches later to remove the current (LIBISCSI_FEATURE_IOVECTOR)
checks in the rest of the file.
regards
ronnie sahlberg
- [Qemu-devel] [PATCH] iSCSI fix crash when using virtio and libiscsi,
Ronnie Sahlberg <=