[PATCH 1/1] vmbus: hvsock: add proper sync for vmbus_hvsock_device_unregister()

Dan Carpenter dan.carpenter at oracle.com
Wed Oct 11 09:42:08 UTC 2017


On Tue, Oct 10, 2017 at 10:38:51PM -0700, kys at exchange.microsoft.com wrote:
> From: Dexuan Cui <decui at microsoft.com>
> 
> 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).
> 
> Please consider this for 4.14.

Put these meta comments under the --- cut off line.  They don't add
any value to the final upstream git log.

> 
> Signed-off-by: Dexuan Cui <decui at microsoft.com>
> Cc: Haiyang Zhang <haiyangz at microsoft.com>
> Cc: Stephen Hemminger <sthemmin at microsoft.com>
> Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
> ---
>  drivers/hv/channel_mgmt.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)


regards,
dan carpenter


More information about the devel mailing list