linux/drivers/net/bonding
Veaceslav Falico c1bc9644ec bonding: fix bond_3ad_set_carrier() RCU usage
Currently, its usage is just plainly wrong. It first gets a slave under
RCU, and, after releasing the RCU lock, continues to use it - whilst it can
be freed.

Fix this by ensuring that bond_3ad_set_carrier() holds RCU till it uses its
slave (or its agg).

Fixes: be79bd048a ("bonding: add RCU for bond_3ad_state_machine_handler()")
CC: dingtianhong@huawei.com
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-13 22:22:27 -08:00
..
bond_3ad.c bonding: fix bond_3ad_set_carrier() RCU usage 2014-01-13 22:22:27 -08:00
bond_3ad.h bonding: remove the return value for bond_3ad_bind_slave() 2014-01-01 22:58:55 -05:00
bond_alb.c bonding: slight optimization for bond_alb_xmit() 2014-01-01 22:58:15 -05:00
bond_alb.h drivers/net/*: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
bond_debugfs.c bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_main.c bonding: add ad_select attribute netlink support 2014-01-03 21:03:21 -05:00
bond_netlink.c bonding: fix netlink msg size 2014-01-03 21:03:21 -05:00
bond_options.c bonding: add bounds checking for tbl params 2014-01-03 21:03:22 -05:00
bond_procfs.c bonding: don't use bond_next_slave() in bond_info_seq_next() 2013-09-28 15:28:06 -07:00
bond_sysfs.c bonding: fix kstrtou8() return value verification in num_peer_notif 2014-01-06 16:26:00 -05:00
bonding.h bonding: add ad_select attribute netlink support 2014-01-03 21:03:21 -05:00
Makefile bonding: move mode setting into separate function 2013-10-19 18:58:45 -04:00