Some SeaBIOS versions are not aligning virtio_blk_outhdr on 8-byte boundary, causing ubsan failures. To be safe, let's just make sure on our end that we only access a properly aligned structure by copying this small (16-byte) data structure to a local structure variable. Fixes issue #2452. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iacad72c3a1759fb8dc5ba411272a34d93ef2a6fc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12238 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_user.c | ||
spdk_vhost.map | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |