]> git.baikalelectronics.ru Git - kernel.git/commit
vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()
authorDexuan Cui <decui@microsoft.com>
Wed, 18 Oct 2017 09:08:40 +0000 (02:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:56:25 +0000 (14:56 +0200)
commit36b5b63b68993cb7f6bd545140d462994abb6ba8
tree3e951524cc33dddf4ff16acb4dc51ccdc76c18c7
parent75262925b29531177dad3f457dbc3e0847f80ec5
vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()

Without the patch, vmbus_hvsock_device_unregister() can destroy the device
prematurely when close() is called, and can cause NULl dereferencing or
potential data loss (the last portion of the data stream may be dropped
prematurely).

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c