Files
Linux/net/vmw_vsock
Dexuan Cui 466a85336f vsock: fix possible infinite sleep in vsock_connectible_wait_data()
Currently vsock_connectible_has_data() may miss a wakeup operation
between vsock_connectible_has_data() == 0 and the prepare_to_wait().

Fix the race by adding the process to the wait queue before checking
vsock_connectible_has_data().

Fixes: b3f7fd5488 ("af_vsock: separate wait data loop")
Signed-off-by: Dexuan Cui <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Reported-by: Frédéric Dalleau <[email protected]>
Tested-by: Frédéric Dalleau <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
2022-11-03 10:49:29 +01:00
..
…
2019-12-11 15:01:23 -08:00
2019-12-11 15:01:23 -08:00