Spdk/lib/vhost
Seth Howell 3bd113eae7 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>
Change-Id: I2891ca2bee70d72fb7b0dff96d569e9b92fe84eb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2071
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2020-04-29 06:38:53 +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-29 06:38:53 +00:00
vhost.c vhost: inline vhost_vring_desc_is_wr() 2020-04-23 07:28:24 +00:00