]> git.baikalelectronics.ru Git - kernel.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)
committerDoug Ledford <dledford@redhat.com>
Tue, 5 May 2015 13:18:01 +0000 (09:18 -0400)
commit1d086655aa363bee9fb45129552a8b7d78f7d00b
tree438d9df8a3e9a5a37fa9843da83a61f81976e0e7
parent194b7115c289879d9d371e5ad3e7d18c3489ecbf
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: 17551fd41ea0 ("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