Spdk/test/unit/lib/nvme
Shuhei Matsumoto a066f0c3fb nvme: Fix the bug that assumed ANA group descriptor is 8-bytes aligned
This fix is as same as for NVMe bdev module.

If a ANA log page has two or more ANA group descriptors, the second
or later of ANA group descriptors will not be 8-bytes aligned.
Then runtime error would occur as follows:

runtime error: member access within misaligned address 0x612000000074
for type 'const struct spdk_nvme_ana_group_descriptor', which requires
8 byte alignment

nvmf_get_ana_log_page() in lib/nvmf/ctrlr.c creates a ANA log page
data and processes 8 bytes alignment correctly because we got the
same runtime error before. However, lib/nvme had been missed at that
time.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Idaa610544dc5cb659c387fcd38a2b4b97cbd06e5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8398
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2021-07-14 09:15:59 +00:00
..
nvme_ctrlr_cmd.c nvme/ctrlr: Always access namespaces via getter function 2021-05-20 15:17:41 +00:00
nvme_ctrlr_ocssd_cmd.c test/nvme_ctrlr_ocssd_cmd: check ocssd supported 2021-04-19 12:49:35 +00:00
nvme_ctrlr.c nvme: Fix the bug that assumed ANA group descriptor is 8-bytes aligned 2021-07-14 09:15:59 +00:00
nvme_cuse.c nvme: add cuse support for RESCAN IOCTL 2021-06-04 19:58:41 +00:00
nvme_fabric.c test/nvme_fabric: cases for fabric qpair connecting 2021-06-04 22:56:36 +00:00
nvme_io_msg.c test/nvme_io_msg: cases for io_msg_ctrlr register and unregister 2021-03-29 07:35:04 +00:00
nvme_ns_cmd.c test/nvme_ns_cmd: cases for namespace command reading and setup 2021-06-04 22:14:58 +00:00
nvme_ns_ocssd_cmd.c ut/nvme: Fix uninitialized controller structure 2021-04-12 20:59:51 +00:00
nvme_ns.c test/nvme_ns: cases for identifying id descriptor and find descriptor 2021-04-27 08:35:27 +00:00
nvme_opal.c test/nvme_opal: build nvme_opal unittest file 2021-06-07 07:24:47 +00:00
nvme_pcie_common.c test/pcie_common: changed the sequence of queued requests for CQ and SQ 2021-06-16 17:59:41 +00:00
nvme_pcie.c test/nvme_pcie: cases for pmr configuration 2021-06-28 16:30:50 +00:00
nvme_poll_group.c test/nvme_poll_group: cases for getting and freeing stats 2021-04-19 12:48:52 +00:00
nvme_qpair.c test/nvme_qpair: cases for getting sgl print information 2021-05-06 07:13:09 +00:00
nvme_quirks.c log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
nvme_rdma.c test/nvme_rdma: cases for qpair submitting request 2021-06-30 22:56:39 +00:00
nvme_tcp.c nvme_tcp: Add data pdu crc32c offloading in receving side by Accel framework. 2021-06-15 08:34:58 +00:00
nvme_transport.c test/nvme_transport: cases for adding and removing poll group 2021-03-22 09:46:18 +00:00
nvme.c nvme: Add new detach to a detach context while it is being polled 2021-06-30 22:54:19 +00:00
Makefile test/nvme_opal: build nvme_opal unittest file 2021-06-07 07:24:47 +00:00