Re: [PATCH v3 1/6] libvhost-user: Add vu_rem_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_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 F

[PATCH v3 1/6] libvhost-user: Add vu_rem_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_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