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(). Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:

commit de
David S. Miller

pai
1ebd08a7e5
commit
d5a8ac28a7
@@ -448,8 +448,9 @@ int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
|
||||
(unsigned long long)be64_to_cpu(lguid),
|
||||
(unsigned long long)be64_to_cpu(fguid));
|
||||
|
||||
conn = rds_conn_create(dp->dp_daddr, dp->dp_saddr, &rds_ib_transport,
|
||||
GFP_KERNEL);
|
||||
/* RDS/IB is not currently netns aware, thus init_net */
|
||||
conn = rds_conn_create(&init_net, dp->dp_daddr, dp->dp_saddr,
|
||||
&rds_ib_transport, GFP_KERNEL);
|
||||
if (IS_ERR(conn)) {
|
||||
rdsdebug("rds_conn_create failed (%ld)\n", PTR_ERR(conn));
|
||||
conn = NULL;
|
||||
|
Referência em uma nova issue
Block a user