]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS-TCP: Make RDS-TCP work correctly when it is set up in a netns other than init_net
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 28 Aug 2015 11:16:01 +0000 (07:16 -0400)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Fri, 4 Sep 2015 02:07:48 +0000 (19:07 -0700)
commit2a4426bf6efa8131d4ada583a56031652b7ce215
tree86f43e3cbc60f576f36d89c2cfa3115adadbb0d2
parent2c796443c7fb78208e9530efb6a8b7f5c313274e
RDS-TCP: Make RDS-TCP work correctly when it is set up in a netns other than init_net

Open the sockets calling sock_create_kern() with the correct struct net
pointer, and use that struct net pointer when verifying the
address passed to rds_bind().

Backport of upstream commit: d5a8ac28a7ff2f250d1bedbb6008dd2f6f6f1638

Orabug: 21437445

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 files changed:
net/rds/bind.c
net/rds/connection.c
net/rds/ib.c
net/rds/ib_cm.c
net/rds/iw.c
net/rds/iw_cm.c
net/rds/rds.h
net/rds/send.c
net/rds/tcp.c
net/rds/tcp_connect.c
net/rds/tcp_listen.c
net/rds/transport.c