numam-dpdk/lib/vhost
Maxime Coquelin 3c929a0bb3 vhost: fix crash on reconnect
When the vhost-user frontend like Virtio-user tries to
reconnect to the restarted Vhost backend, the Vhost backend
segfaults when multiqueue is enabled.

This is caused by VHOST_USER_GET_VRING_BASE being called for
a virtqueue that has not been created before, causing a NULL
pointer dereferencing.

This patch adds the VHOST_USER_GET_VRING_BASE requests to
the list of requests that trigger queue pair allocations.

Fixes: 160cbc815b ("vhost: remove a hack on queue allocation")
Cc: stable@dpdk.org

Reported-by: Yinan Wang <yinan.wang@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
2021-07-28 08:27:53 +02:00
..
fd_man.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
fd_man.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
iotlb.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
iotlb.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vdpa_dev.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vdpa.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vhost_async.h vhost: add unsafe async API to clear packets 2021-07-23 10:58:53 +02:00
rte_vhost_crypto.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vhost.h vhost: fix offload flags in Rx path 2021-05-04 10:22:17 +02:00
socket.c vhost: fix offload flags in Rx path 2021-05-04 10:22:17 +02:00
vdpa.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map vhost: add unsafe async API to clear packets 2021-07-23 10:58:53 +02:00
vhost_crypto.c vhost/crypto: check request pointer before dereference 2021-06-23 09:55:23 +02:00
vhost_user.c vhost: fix crash on reconnect 2021-07-28 08:27:53 +02:00
vhost_user.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
vhost.c vhost: add thread-unsafe async registration 2021-07-21 07:56:13 +02:00
vhost.h vhost: rework async configuration structure 2021-07-21 07:56:13 +02:00
virtio_crypto.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
virtio_net.c vhost: add unsafe async API to clear packets 2021-07-23 10:58:53 +02:00