On Wed, Jul 31, 2019 at 06:41:10AM +0000, Dexuan Cui wrote:
Hi, Sunil Muthuswamy sunilmut@microsoft.com made some important fixes for hv_sock recently. I and Sunil think it would be great to backport the fixes to the longterm stable kernels.
Since hv_sock was firstly introduced in v4.14, we only care about v4.14, v4.19 and v5.2.
For linux-5.2.y (currently it's v5.2.4), only one patch is missing. The mainline commit ID is: d5afa82c977e ("vsock: correct removal of socket from the list") It can be cleanly cherry-picked from the mainline.
For linux-4.19.y (currently it's v4.19.62), 3 patches are missing. The mainline commit IDs are: cb359b604167 ("hvsock: fix epollout hang from race condition") a9eeb998c28d ("hv_sock: Add support for delayed close") d5afa82c977e ("vsock: correct removal of socket from the list") They can be cleanly cherry-picked from the mainline, in the listed order here. Note: it looks the first commit (cb359b604167) has been queued.
For linux-4.14.y (currently it's v4.14.134), 4 patches are missing. The mainline commit IDs are: cb359b604167 ("hvsock: fix epollout hang from race condition") 3b4477d2dcf2 ("VSOCK: use TCP state constants for sk_state") a9eeb998c28d ("hv_sock: Add support for delayed close") d5afa82c977e ("vsock: correct removal of socket from the list") The third patch (a9eeb998c28d) needs small manual adjustments, and please use the attached backported patch for it; the other 3 patches can be cleanly cherry-picked from the mainline, in the listed order here. Note: it looks the first commit (cb359b604167) has been queued.
I have not taken 3b4477d2dcf2 ("VSOCK: use TCP state constants for sk_state") for 4.14.y as it doesn't look like you really needed it. Are you sure you did?
The other ones are now queued up, please let me know if I have messed anythign up.
thanks,
greg k-h