Thread (21 messages) flat view 21 messages, 4 authors, 2014-02-18

Re: [PATCH v4 net-next 01/12] bonding: remove bond->lock from bond_arp_rcv

From: Veaceslav Falico <hidden>
Date: 2014-02-18 07:24:33

On Tue, Feb 18, 2014 at 03:07:46PM +0800, Ding Tianhong wrote:
On 2014/2/18 14:12, Veaceslav Falico wrote:
quoted
On Tue, Feb 18, 2014 at 12:02:41PM +0800, Ding Tianhong wrote:
quoted
On 2014/2/17 22:41, Veaceslav Falico wrote:
...snip...
quoted
quoted
I think it is not enough, you should add rcu_dereference for bond->curr_active_slave, it may be changed during
the recv processing.
bond->lock has absolutely nothing to du with bond->curr_active_slave .
Yep, this problem is introduced by commit aeea64ac7, there is no way to protect the curr_active_slave, so
I think you could fix it in this patch together.

else if (bond->curr_active_slave &&
	 time_after(slave_last_rx(bond, bond->curr_active_slave),
		    bond->curr_active_slave->jiffies))
It's not related to this patchset, but yeah, I'll send a fix afterwards.
quoted
quoted
Regards
Ding
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help