RDMA/CMA: Canonize IPv4 on IPV6 sockets properly
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Mon, 20 Apr 2015 20:01:11 +0000 (14:01 -0600)
committerDoug Ledford <dledford@redhat.com>
Tue, 5 May 2015 13:18:01 +0000 (09:18 -0400)
commit285214409a9e5fceba2215461b4682b6069d8e77
tree438d9df8a3e9a5a37fa9843da83a61f81976e0e7
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
RDMA/CMA: Canonize IPv4 on IPV6 sockets properly

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: e51060f08a61 ("IB: IP address based RDMA connection manager")

Cc: <stable@vger.kernel.org>
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>
drivers/infiniband/core/cma.c