android_kernel_google_msm/drivers/infiniband
Jason Gunthorpe bbb5527489 RDMA/CMA: Canonize IPv4 on IPV6 sockets properly
commit 285214409a9e5fceba2215461b4682b6069d8e77 upstream.

When accepting a new IPv4 connect to an IPv6 socket, the CMA tries to
canonize the address family to IPv4, but does not properly process
the listening sockaddr to get the listening port, and does not properly
set the address family of the canonized sockaddr.

Fixes: e51060f08a ("IB: IP address based RDMA connection manager")

Reported-By: Yotam Kenneth <yotamke@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
[lizf: Backported to 3.4:
 - there's no cma_save_ip4_info() and cma_save_ip6_info(), and instead
   we apply the changes to cma_save_net_info()]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-09-18 09:20:36 +08:00
..
core RDMA/CMA: Canonize IPv4 on IPV6 sockets properly 2015-09-18 09:20:36 +08:00
hw IB/mlx4: Fix WQE LSO segment calculation 2015-09-18 09:20:31 +08:00
ulp srp-target: Retry when QP creation fails with ENOMEM 2015-02-02 17:05:20 +08:00
Kconfig ib_srpt: Initial SRP Target merge for v3.3-rc1 2011-12-16 06:33:56 +00:00
Makefile ib_srpt: Initial SRP Target merge for v3.3-rc1 2011-12-16 06:33:56 +00:00