Spdk/lib/nvmf
Changpeng Liu 6b372f419d nvmf: fix heap corruption of Reservation Report command
We should use `ns->registrants` to count the number of registered
controllers(REGCTL) for Reservation Report command, as `subsystem->ctrlrs`
only list current active sessions(controllers).

Also use the output data buffer directly so that we don't need to calloc/free
during the process of Reservation Report command.

Fix #1928

Change-Id: I650224b751a08416208b8a504b82debff31e92fd
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7822
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: wanghailiang <hailiangx.e.wang@intel.com>
2021-05-13 10:10:42 +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: ctrlr_create - fix missing free qpair_mask on error 2021-05-10 11:14:24 +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: Allow configurable controller ID range 2021-05-12 09:18:48 +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: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
nvmf_rpc.c nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
nvmf.c nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
rdma.c nvmf: use SPDK_TRACE_ARG_TYPE #defines 2021-05-07 11:35:38 +00:00
spdk_nvmf.map nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
subsystem.c nvmf: fix heap corruption of Reservation Report command 2021-05-13 10:10:42 +00:00
tcp.c lib/nvmf: Refactor the code to generate _nvmf_tcp_pdu_payload_handle 2021-05-10 11:12:57 +00:00
transport.c nvmf: call transport abort callback when it's not empty 2021-04-13 08:37:57 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
vfio_user.c vfio-user: add disable-mappable-bar0 flag 2021-05-07 11:31:20 +00:00