Re: [PATCHv2] vsock: Fix blocking ops call in prepare_to_wait
From: David Miller
Date: Sat Feb 13 2016 - 05:59:48 EST
From: Laura Abbott <labbott@xxxxxxxxxxxxxxxxx>
Date: Thu, 4 Feb 2016 10:50:45 -0800
> We receoved a bug report from someone using vmware:
...
> transport->stream_enqueue may call copy_to_user so it should
> not be called inside a prepare_to_wait. Narrow the scope of
> the prepare_to_wait to avoid the bad call. This also applies
> to vsock_stream_recvmsg as well.
>
> Reported-by: Vinson Lee <vlee@xxxxxxxxxxxxxxx>
> Tested-by: Vinson Lee <vlee@xxxxxxxxxxxxxxx>
> Signed-off-by: Laura Abbott <labbott@xxxxxxxxxxxxxxxxx>
Applied.