]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: Invoke ->laddr_check() in rds_bind() for explicitly bound transports.
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 15 Oct 2015 00:37:47 +0000 (20:37 -0400)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 21 Oct 2015 16:09:22 +0000 (09:09 -0700)
commit8a2c912b27e0a66760bc9f25ae36d025f1920eb7
tree50be931d2acd7d05a13a18af86aee6e6c912c3f8
parent0831bd10efc373948f04f76a9309608895560c08
RDS: Invoke ->laddr_check() in rds_bind() for explicitly bound transports.

Orabug: 22012202

Backport of upstream commit 486798001b92 ("RDS: Invoke ->laddr_check()
in rds_bind() for explicitly bound transports.")

The IP address passed to rds_bind() should be vetted by the
transport's ->laddr_check() for a previously bound transport.
This needs to be done to avoid cases where, for example,
the application has asked for an IB transport,
but the IP address passed to bind is only usable on
ethernet interfaces.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
net/rds/bind.c