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, 26 Aug 2015 06:10:21 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	"Zhangjie (HZ)" <zhangjie14@...wei.com>
Cc:	Jason Wang <jasowang@...hat.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	Qinchuanyu <qinchuanyu@...wei.com>, Yewudi <yewudi@...wei.com>,
	liuyongan 00175866 <l00175866@...esmail.huawei.com.cn>,
	Wangbicheng <wangbicheng@...wei.com>,
	Yan Chen <Y.Chen@...wei.com>
Subject: Re: [Question] Usage of dev_hold()/dev_put()

On Wed, 2015-08-26 at 07:48 +0000, Zhangjie (HZ) wrote:
> Eric,
> Thank you for your patient apply.
> There is still a question, 
> In receive path, driver does not call dev_hold(), when skb goes to host stack, skb->dev is likely to be used. 
> If device is destroyed before that, it seems dangerous.

This is also handled properly.

Check : flush_backlog() in net/core/dev.c
   sock_queue_rcv_skb() , and all functions setting skb->dev to NULL


--
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