linux/drivers/infiniband/hw/i40iw
Shiraz Saleem 9a4b24108d i40iw: Do an RCU lookup in i40iw_add_ipv4_addr
The in_dev_for_each_ifa_rtnl() iterator in i40iw_add_ipv4_addr requires
that the rtnl lock be held. But the rtnl_trylock/unlock scheme in this
function does not guarantee it.

Replace the rtnl locking with an RCU lookup using
in_dev_for_each_ifa_rcu()

Fixes: 8e06af711b ("i40iw: add main, hdr, status")
Link: https://lore.kernel.org/r/20200204223840.2151-1-shiraz.saleem@intel.com
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-02-11 14:31:11 -04:00
..
i40iw_cm.c RDMA/i40iw: Fix potential use after free 2019-11-14 11:47:18 -04:00
i40iw_cm.h
i40iw_ctrl.c
i40iw_d.h
i40iw_hmc.c
i40iw_hmc.h
i40iw_hw.c
i40iw_main.c i40iw: Do an RCU lookup in i40iw_add_ipv4_addr 2020-02-11 14:31:11 -04:00
i40iw_osdep.h i40iw: Redefine i40iw_mmiowb() to do nothing 2019-04-08 12:09:15 +01:00
i40iw_p.h
i40iw_pble.c
i40iw_pble.h
i40iw_puda.c
i40iw_puda.h
i40iw_register.h
i40iw_status.h
i40iw_type.h
i40iw_uk.c
i40iw_user.h
i40iw_utils.c net: ipv4: provide __rcu annotation for ifa_list 2019-06-02 18:08:36 -07:00
i40iw_verbs.c IB/core: Introduce ib_reg_user_mr 2020-01-16 16:14:36 +02:00
i40iw_verbs.h RDMA/i40iw: Use core helpers to get aligned DMA address within a supported page size 2019-05-06 13:08:11 -03:00
i40iw_vf.c
i40iw_vf.h
i40iw_virtchnl.c
i40iw_virtchnl.h
i40iw.h RDMA/i40iw: Handle workqueue allocation failure 2019-03-27 10:19:07 -03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile