linux/drivers/infiniband
Jason Gunthorpe 13476d35bb IB/ipoib: Maintain the child_intfs list from ndo_init/uninit
This fixes a bug in the netlink path where the vlan_rwsem was not
held around __ipoib_vlan_add causing the child_intfs to be manipulated
unsafely.

In the process this greatly simplifies the vlan_rwsem write side locking
to only cover a single non-sleeping statement.

This also further increases the safety of the removal ordering by holding
the netdev of the parent while the child is active to ensure most bugs
become either an oops on a NULL priv or a deadlock on the netdev refcount.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-08-02 20:27:44 -06:00
..
core IB/uverbs: Allow all DESTROY commands to succeed after disassociate 2018-08-01 14:55:48 -06:00
hw RDMA/netdev: Use priv_destructor for netdev cleanup 2018-08-02 20:27:43 -06:00
sw RDMA/providers: Fix return value from create_srq callbacks 2018-07-30 20:29:45 -06:00
ulp IB/ipoib: Maintain the child_intfs list from ndo_init/uninit 2018-08-02 20:27:44 -06:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-05-24 09:39:25 -06:00
Makefile