OpenCloudOS-Kernel/drivers/infiniband
Bernard Metzler 531a64e4c3 RDMA/siw: Fix IPv6 addr_list locking
Walking the address list of an inet6_dev requires
appropriate locking. Since the called function
siw_listen_address() may sleep, we have to use
rtnl_lock() instead of read_lock_bh().

Also introduces sanity checks if we got a device
from in_dev_get() or in6_dev_get().

Reported-by: Bart Van Assche <bvanassche@acm.org>
Fixes: 6c52fdc244 ("rdma/siw: connection management")
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Link: https://lore.kernel.org/r/20190828130355.22830-1-bmt@zurich.ibm.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-08-28 10:29:19 -04:00
..
core RDMA/cma: fix null-ptr-deref Read in cma_cleanup 2019-08-20 13:44:45 -04:00
hw RDMA/bnxt_re: Fix stack-out-of-bounds in bnxt_qplib_rcfw_send_message 2019-08-22 10:52:15 -04:00
sw RDMA/siw: Fix IPv6 addr_list locking 2019-08-28 10:29:19 -04:00
ulp SCSI fixes on 20190720 2019-07-20 10:04:58 -07:00
Kconfig RDMA/nldev: Added configuration of RDMA dynamic interrupt moderation to netlink 2019-07-08 16:37:22 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00