hv_netvsc: Fix race between VF offering and VF association message from host
stable inclusion from stable-v5.10.152 commit dcaf6313202a02cee13302a04a9b0503352ddef2 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I73HJ0 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dcaf6313202a02cee13302a04a9b0503352ddef2 -------------------------------- commit 365e1ece upstream. During vm boot, there might be possibility that vf registration call comes before the vf association from host to vm. And this might break netvsc vf path, To prevent the same block vf registration until vf bind message comes from host. Cc: stable@vger.kernel.org Fixes: 00d7ddba ("hv_netvsc: pair VF based on serial number") Reviewed-by:Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by:
Gaurav Kohli <gauravkohli@linux.microsoft.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Lipeng Sang <sanglipeng1@jd.com>
Loading
Please sign in to comment