Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost: check message header size read
[ upstream commit 966f89d ] This patch adds a check to ensure the read size of the Vhost-user message header is not smaller than the expected size. In case of unexpected read size, report an error and close file descriptors passed with the message, if any. Fixes: 8f97231 ("vhost: support vhost-user") Reported-by: Ilja Van Sprundel <ivansprundel@ioactive.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
- Loading branch information