aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/rdma_user_ioctl.h
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2018-04-19 08:28:11 -0700
committerDoug Ledford <dledford@redhat.com>2018-04-23 11:04:05 -0400
commit09abfe7b5b2f442a85f4c4d59ecf582ad76088d7 (patch)
tree70bd4955b52d75a00748feaff3fa88c511137316 /include/uapi/rdma/rdma_user_ioctl.h
parentRDMA/ucma: Check for a cm_id->device in all user calls that need it (diff)
downloadlinux-dev-09abfe7b5b2f442a85f4c4d59ecf582ad76088d7.tar.xz
linux-dev-09abfe7b5b2f442a85f4c4d59ecf582ad76088d7.zip
RDMA/ucma: Allow resolving address w/o specifying source address
The RDMA CM will select a source device and address by consulting the routing table if no source address is passed into rdma_resolve_address(). Userspace will ask for this by passing an all-zero source address in the RESOLVE_IP command. Unfortunately the new check for non-zero address size rejects this with EINVAL, which breaks valid userspace applications. Fix this by explicitly allowing a zero address family for the source. Fixes: 2975d5de6428 ("RDMA/ucma: Check AF family prior resolving address") Cc: <stable@vger.kernel.org> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma/rdma_user_ioctl.h')
0 files changed, 0 insertions, 0 deletions