numam-spdk/lib/vhost
Seth Howell d831e63353 lib/vhost: Don't dereference svdev->name in dev_remove.
If the vdev is marked for hotremove, it is possible that the
name has already been freed resulting in a heap use after free,
so remove the warning about a vdev being marked for hotremove
to avoid a segfault when removing a device.

This was observed in the vhost fuzz tests.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2071 (master)

(cherry picked from commit 3bd113eae7)
Change-Id: I2891ca2bee70d72fb7b0dff96d569e9b92fe84eb
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2080
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Seth Howell <seth.howell@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-04-30 13:17:21 +00:00
..
Makefile vhost: add packed ring support 2020-04-15 03:55:59 +00:00
rte_vhost_compat.c memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vhost_blk.c lib/thread: Use function name as poller name by using macro SPDK_POLLER_REGISTER 2020-04-15 07:23:09 +00:00
vhost_internal.h vhost: inline vhost_vring_desc_is_wr() 2020-04-23 07:28:24 +00:00
vhost_nvme.c vhost/nvme: fix the compliation issue with internal vhost library 2020-04-24 07:08:17 +00:00
vhost_rpc.c vhost: add packed ring support 2020-04-15 03:55:59 +00:00
vhost_scsi.c lib/vhost: Don't dereference svdev->name in dev_remove. 2020-04-30 13:17:21 +00:00
vhost.c vhost: inline vhost_vring_desc_is_wr() 2020-04-23 07:28:24 +00:00