]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/CMA: Canonize IPv4 on IPV6 sockets properly
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Mon, 20 Apr 2015 20:01:11 +0000 (14:01 -0600)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 23 May 2015 19:43:11 +0000 (15:43 -0400)
commiteed9aeb7b5f84ca10bed64af7b51808540d1b881
tree743477d7bfda14abbc808101ae287dac65e210aa
parentf4ccf646b9332123ed5d49dfa4806989248f8725
RDMA/CMA: Canonize IPv4 on IPV6 sockets properly

[ Upstream commit 285214409a9e5fceba2215461b4682b6069d8e77 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/infiniband/core/cma.c