Re: [PATCH] RDMA/ucma: Allow resolving address without specifying source address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2018-04-19 at 08:28 -0700, Roland Dreier wrote:
> From: Roland Dreier <roland@xxxxxxxxxxxxxxx>
> 
> 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@xxxxxxxxxxxxxxx>
> Signed-off-by: Roland Dreier <roland@xxxxxxxxxxxxxxx>

Thanks, applied to for-rc.

-- 
Doug Ledford <dledford@xxxxxxxxxx>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux