Spdk/lib/nvmf
Jiewei Ke adc2942ada nvmf: nvmf_ctrlr_get_log_page use iovs to store the log page
nvmf_ctrlr_get_log_page used req->data to store the log page result.
While the req->data only contains the first iov, if req->iovcnt is
larger than 1, the req->data may not hold the complete log page; and
even worse, the log page result may be written to invalid address and
cause memory corruption.

Change-Id: Ie6415a6bd2327419fe4b32f21ac814fd827c9e95
Signed-off-by: Jiewei Ke <jiewei@smartx.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7970
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2021-06-17 09:02:02 +00:00
..
ctrlr_bdev.c nvmf: Support physical block size if exposed by bdev 2021-05-06 07:14:40 +00:00
ctrlr_discovery.c nvmf: remove a bdev_module.h #include 2021-05-11 11:57:01 +00:00
ctrlr.c nvmf: nvmf_ctrlr_get_log_page use iovs to store the log page 2021-06-17 09:02:02 +00:00
fc_ls.c nvmf/fc: Handle out of order fused commands. 2021-01-14 16:18:25 +00:00
fc.c nvmf: use SPDK_TRACE_ARG_TYPE #defines 2021-05-07 11:35:38 +00:00
Makefile nvmf: Remove spdk_nvmf_request_get_buffers_multi API 2021-05-18 12:44:18 +00:00
nvmf_fc.h nvmf/fc: Add flag to differentiate LS queue and non LS queue. 2021-01-14 16:18:25 +00:00
nvmf_internal.h nvmf: Add nvmf_set_crdt RPC 2021-06-04 20:02:42 +00:00
nvmf_rpc.c nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
nvmf.c nvmf: add traces around poll group lifecycle 2021-06-10 10:58:05 +00:00
rdma.c lib/trace: don't format arg's name while registering a tpoint 2021-06-10 10:58:05 +00:00
spdk_nvmf.map nvmf: Remove spdk_nvmf_request_get_buffers_multi API 2021-05-18 12:44:18 +00:00
subsystem.c nvmf:check return value of strdup in spdk_nvmf_subsystem_add_ns_ext() 2021-06-15 23:39:17 +00:00
tcp.c nvmf/tcp: fix the unexpected pointer access from mgmt_pdu 2021-06-16 08:53:03 +00:00
transport.c nvmf: add traces around poll group lifecycle 2021-06-10 10:58:05 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
vfio_user.c nvmf: fix fd leakage problem in nvmf_vfio_user_listen() 2021-06-16 09:01:00 +00:00