numam-spdk/test/nvmf
Daniel Verkamp 8af4b6c40f nvmf: fix potential use-after-free in hot remove
The subsystem->ns array may be resized with realloc(), so old ns
pointers can become invalid.

To fix this, allocate each ns as a separate object, and change the
subsystem->ns[] array to point to the namespaces rather than containing
them.

Change-Id: I873502fa90cf840e4eaa9b1abd94a95afe0f737f
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/399726
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-02-16 13:06:11 -05:00
..
discovery nvmf: Add an rpc to add a namespace to a subsystem 2018-02-07 23:22:57 -05:00
filesystem rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
fio nvmf: fix potential use-after-free in hot remove 2018-02-16 13:06:11 -05:00
host nvmf: Add rpc to add listeners to subsystems 2018-02-06 10:29:42 -05:00
lvol test/nvmf: increase number of subsystems in lvol test 2017-12-21 12:20:42 -05:00
multiconnection test/nvmf: decrease number of subsystems for software rdma 2017-12-21 12:20:42 -05:00
nvme_cli nvmf: Add rpc to add listeners to subsystems 2018-02-06 10:29:42 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
rpc nvmf: Add an rpc to add a namespace to a subsystem 2018-02-07 23:22:57 -05:00
shutdown rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
common.sh test/nvmf: don't use SoftRoCE with bridges 2018-02-15 11:23:22 -05:00
nvmf.conf rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
nvmf.sh test/nvmf: shorten nightly nvmf+pmem test 2018-01-03 14:02:26 -05:00
test_plan.md test/nvmf: Add test scripts with FIO traffic and NVML backend 2017-10-23 11:54:57 -04:00