From: Veaceslav Falico Date: Thu, 20 Feb 2014 11:07:57 +0000 (+0100) Subject: bonding: fix bond_arp_rcv() race of curr_active_slave X-Git-Tag: v3.15-rc1~113^2~290 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=010d3c3989706d800ae72253773fa6537cc9f74c;p=pandora-kernel.git bonding: fix bond_arp_rcv() race of curr_active_slave bond->curr_active_slave can be changed between its deferences, even to NULL, and thus we might panic. We're always holding the rcu (rx_handler->bond_handle_frame()->bond_arp_rcv()) so fix this by rcu_dereferencing() it and using the saved. Reported-by: Ding Tianhong Fixes: aeea64a ("bonding: don't trust arp requests unless active slave really works") CC: Jay Vosburgh CC: Andy Gospodarek Signed-off-by: Veaceslav Falico Acked-by: Ding Tianhong Signed-off-by: David S. Miller --- Reading git-diff-tree failed