alistair23-linux/drivers/infiniband/sw
Bernard Metzler 7f5432c2f4 RDMA/siw: Fix passive connection establishment
commit 33fb27fd54 upstream.

Holding the rtnl_lock while iterating a devices interface address list
potentially causes deadlocks with the cma_netdev_callback. While this was
implemented to limit the scope of a wildcard listen to addresses of the
current device only, a better solution limits the scope of the socket to
the device. This completely avoiding locking, and also results in
significant code simplification.

Fixes: c421651fa2 ("RDMA/siw: Add missing rtnl_lock around access to ifa")
Link: https://lore.kernel.org/r/20200228173534.26815-1-bmt@zurich.ibm.com
Reported-by: syzbot+55de90ab5f44172b0c90@syzkaller.appspotmail.com
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-13 10:48:13 +02:00
..
rdmavt IB/rdmavt: Free kernel completion queue when done 2020-04-01 11:01:57 +02:00
rxe RDMA/rxe: Fix error type of mmap_offset 2020-02-24 08:36:42 +01:00
siw RDMA/siw: Fix passive connection establishment 2020-04-13 10:48:13 +02:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00