Re: [PATCH] Stop vhost-user sending uninitialized mmap_offsets

2020-06-22 Thread Michael S. Tsirkin
On Mon, Jun 22, 2020 at 06:41:39PM +, Raphael Norwitz wrote: > Prior to this change, the vhost_user_fill_msg_region function filled out > all elements of the VhostUserMemoryRegion struct except the mmap_offset. > > This function is often called on uninitialized structs, which are then > copied

[PATCH] Stop vhost-user sending uninitialized mmap_offsets

2020-06-22 Thread Raphael Norwitz
Prior to this change, the vhost_user_fill_msg_region function filled out all elements of the VhostUserMemoryRegion struct except the mmap_offset. This function is often called on uninitialized structs, which are then copied into VHOST_USER_SET_MEM_TABLE and VHOST_USER_ADD/REM_MEM_REG messages. In