SUNRPC: Introduce xdr_stream-based decoders for RPCB_UNSET
authorChuck Lever <chuck.lever@oracle.com>
Sun, 9 Aug 2009 19:09:42 +0000 (15:09 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 9 Aug 2009 19:09:42 +0000 (15:09 -0400)
commit7ed0ff983c8ad30bf4e2b9fdbb299a3e3ec08d08
treee93eedc32104cf0b6f26b5b8a1fbd61b33df5df8
parent0d36c4f7574d5a33bedd8f0e3c793490d45d83c6
SUNRPC: Introduce xdr_stream-based decoders for RPCB_UNSET

Replace the open-coded decode logic for rpcbind UNSET results with an
xdr_stream-based implementation, similar to what NFSv4 uses, to
protect against buffer overflows.

The new function is unused for the moment.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c