aboutsummaryrefslogtreecommitdiff
path: root/migration/page_cache.c
diff options
context:
space:
mode:
authorRaphael Norwitz <raphael.norwitz@nutanix.com>2022-01-17 04:12:24 +0000
committerMichael S. Tsirkin <mst@redhat.com>2022-02-04 09:07:43 -0500
commit316ee11144e3b8e1bc97a1d0fc6b1caf1963e104 (patch)
tree70ddbaa0375d325d4047246db8eccdb3be09e299 /migration/page_cache.c
parent408ca92634770de5eac7965ed97c6260e770f2e7 (diff)
downloadqemu-316ee11144e3b8e1bc97a1d0fc6b1caf1963e104.zip
qemu-316ee11144e3b8e1bc97a1d0fc6b1caf1963e104.tar.gz
qemu-316ee11144e3b8e1bc97a1d0fc6b1caf1963e104.tar.bz2
libvhost-user: Add vu_rem_mem_reg input validation
Today if multiple FDs are sent from the VMM to the backend in a VHOST_USER_REM_MEM_REG message, one FD will be unmapped and the remaining FDs will be leaked. Therefore if multiple FDs are sent we report an error and fail the operation, closing all FDs in the message. Likewise in case the VMM sends a message with a size less than that of a memory region descriptor, we add a check to gracefully report an error and fail the operation rather than crashing. Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com> Message-Id: <20220117041050.19718-2-raphael.norwitz@nutanix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'migration/page_cache.c')
0 files changed, 0 insertions, 0 deletions