]> git.droids-corp.org - dpdk.git/commit
vhost: fix FD leak with inflight messages
authorDavid Marchand <david.marchand@redhat.com>
Tue, 18 Jan 2022 14:53:30 +0000 (15:53 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 10 Mar 2022 13:03:48 +0000 (14:03 +0100)
commitaf74f7db384ed149fe42b21dbd7975f8a54ef227
tree68781e26e0e4cfd6151ae4d25ae59d4a9170b691
parent6442c329b9d2ded0f44b27d2016aaba8ba5844c5
vhost: fix FD leak with inflight messages

Even if unlikely, a buggy vhost-user master might attach fds to inflight
messages. Add checks like for other types of vhost-user messages.

Fixes: d87f1a1cb7b6 ("vhost: support inflight info sharing")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost_user.c