Re: [PATCH v3 2/6] libvhost-user: Add vu_add_mem_reg input validation

2022-01-17 Thread David Hildenbrand
On 17.01.22 05:12, Raphael Norwitz wrote: > Today if multiple FDs are sent from the VMM to the backend in a > VHOST_USER_ADD_MEM_REG message, one FD will be mapped and the remaining > FDs will be leaked. Therefore if multiple FDs are sent we report an > error and fail the operation, closing all FDs

[PATCH v3 2/6] libvhost-user: Add vu_add_mem_reg input validation

2022-01-16 Thread Raphael Norwitz
Today if multiple FDs are sent from the VMM to the backend in a VHOST_USER_ADD_MEM_REG message, one FD will be mapped 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