]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
SUNRPC: Introduce new xdr_stream-based encoders to rpcb_clnt.c
authorChuck Lever <chuck.lever@oracle.com>
Sun, 9 Aug 2009 19:09:40 +0000 (15:09 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 9 Aug 2009 19:09:40 +0000 (15:09 -0400)
commit6f2c2db7a46243bd86e3d7ff5f9ff982f26a9fe8
tree7b5ce21079d2723a34f1dc982d98a3318c122afe
parent4116092b92f859e5e9a90c99d740933e651ee8c0
SUNRPC: Introduce new xdr_stream-based encoders to rpcb_clnt.c

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

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