SUNRPC: fill in remote address before checking it's family
Subsystems (3)
PATCH 1/3 SUNRPC: fill in remote address before checking it's family
Recent IPv6 changes introduced a regression. The address family of the remote address is checked before the address is actually filled in.
---
net/sunrpc/rpcb_clnt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
net/sunrpc/rpcb_clnt.c +2 -1
@@ -359,6 +359,8 @@ void rpcb_getport_async(struct rpc_task *task) goto bailout_nofree; } +rpc_peeraddr (clnt, (void *)&addr,sizeof (addr)); +/* Don't ever use rpcbind v2 for AF_INET6 requests */ switch (addr.sa_family) {case AF_INET :
@@ -403,7 +405,6 @@ void rpcb_getport_async(struct rpc_task *task) sizeof(map->r_addr)); map->r_owner =RPCB_OWNER_STRING ;/* ignored for GETADDR */ -rpc_peeraddr (clnt, (void *)&addr,sizeof (addr)); rpcb_clnt =rpcb_create (clnt->cl_server, &addr, xprt->prot, bind_version,0 );if (IS_ERR (rpcb_clnt)) { status =PTR_ERR (rpcb_clnt);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 5 lines · Chuck Lever
Recent IPv6 changes introduced a regression. The address family of the remote address is checked before the address is actually filled in.
Signed-off-by Chuck Lever <[email protected]>---
I'm simply folding this one into the patch that adds IPv6 support. None of that has been merged into 2.6.23-rc3.
Trond
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs