lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 18 Apr 2012 14:10:44 +0000
From:	Haiyang Zhang <haiyangz@...rosoft.com>
To:	Wenqi Ma <wenqi_ma@...ndmicro.com.cn>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC:	"davem@...emloft.net" <davem@...emloft.net>,
	KY Srinivasan <kys@...rosoft.com>
Subject: RE: [PATCH] net/hyperv: RX packets may keep on increasing although
 the NIC is down



> -----Original Message-----
> From: Wenqi Ma [mailto:wenqi_ma@...ndmicro.com.cn]
> Sent: Wednesday, April 18, 2012 10:02 AM
> To: netdev@...r.kernel.org
> Cc: davem@...emloft.net; Haiyang Zhang; Wenqi Ma
> Subject: [PATCH] net/hyperv: RX packets may keep on increasing although
> the NIC is down
> 
> Although the network interface is down, the RX packets number which
> could be observed by ifconfig may keep on increasing.
> 
> This is because the WORK scheduled in netvsc_set_multicast_list()
> may be executed after netvsc_close(). That means the rndis filter
> may be re-enabled by do_set_multicast() even if it was closed by
> netvsc_close().
> 
> By canceling possible WORK before close the rndis filter, the issue
> could be never happened.
> 
> Signed-off-by: Wenqi Ma <wenqi_ma@...ndmicro.com.cn>
> ---
>  drivers/net/hyperv/netvsc_drv.c |   32 +++++++++++++-------------------
>  1 files changed, 13 insertions(+), 19 deletions(-)

Thanks for patching it. I have some comments --
The existing "struct set_multicast_work" is no longer in use, so it should be removed now.
You should also add cancel_work into netvsc_change_mtu().

Thanks,
- Haiyang

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ