Subject: Re: [PATCH] netvsc: fix use-after-free in netvsc_change_mtu()

From: Stephen Hemminger <[email-masked]>
Date: Thu, 2 Mar 2017 09:06:52 -0800

On Thu, 2 Mar 2017 13:00:53 +0000
Dexuan Cui <[email-masked]> wrote:

> 'nvdev' is freed in rndis_filter_device_remove -> netvsc_device_remove ->
> free_netvsc_device, so we mustn't access it, before it's re-created in
> rndis_filter_device_add -> netvsc_device_add.
> 
> Signed-off-by: Dexuan Cui <[email-masked]>
> Cc: "K. Y. Srinivasan" <[email-masked]>
> Cc: Haiyang Zhang <[email-masked]>
> Cc: Stephen Hemminger <[email-masked]>

Reviewed-by: Stephen Hemminger <[email-masked]>