Spdk/lib/vhost
Jim Harris 7778bc3a33 vhost: copy virtio_blk_outhdr to local struct
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>
2022-04-13 08:33:51 +00:00
..
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
rte_vhost_user.c lib/vhost: separate out vhost_user backend callbacks 2022-04-11 07:44:09 +00:00
spdk_vhost.map lib/vhost: Remove and inline spdk_vhost_blk_get_dev 2020-06-08 09:28:27 +00:00
vhost_blk.c vhost: copy virtio_blk_outhdr to local struct 2022-04-13 08:33:51 +00:00
vhost_internal.h lib/vhost: separate out vhost_user backend callbacks 2022-04-11 07:44:09 +00:00
vhost_rpc.c vhost: parse JSON vhost_blk devices specific params 2022-04-11 07:44:09 +00:00
vhost_scsi.c lib/vhost: separate out vhost_user backend callbacks 2022-04-11 07:44:09 +00:00
vhost.c lib/vhost: separate out vhost_user backend callbacks 2022-04-11 07:44:09 +00:00