[PATCH v2] vhost: fix use-after-free in fdset during shutdown
Stephen Hemminger
stephen at networkplumber.org
Thu Feb 5 17:46:24 CET 2026
On Wed, 4 Feb 2026 19:40:11 +0100
malikovyehor at gmail.com wrote:
> diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c
> index 9b4f332f94..e953dd1849 100644
> --- a/lib/vhost/socket.c
> +++ b/lib/vhost/socket.c
> @@ -1209,3 +1209,11 @@ rte_vhost_driver_start(const char *path)
> else
> return vhost_user_start_client(vsocket);
> }
> +
> +RTE_FINI(vhost_user_fdset_fini)
> +{
> + if (vhost_user.fdset != NULL) {
> + fdset_deinit(vhost_user.fdset);
> + vhost_user.fdset = NULL;
> + }
> +}
NAK
This should be done as via rte_eal_cleanup.
Did you not see previous analysis?
More information about the dev
mailing list