lockd: Introduce new-style XDR functions for NLMv4
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 14:57:12 +0000 (14:57 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:23 +0000 (12:37 -0500)
commit3460f29a27344db8c7af62cafdb961286ef0b6cd
treebe7c8acc0c8c971114f8136534c613395a4d2951
parentf6048709391336cf27fb5c1cfca8e792103e5a73
lockd: Introduce new-style XDR functions for NLMv4

We'd like to prevent local buffer overflows caused by malicious or
broken servers.  New xdr_stream style decoders can do that.

For efficiency, we also want to be able to pass xdr_streams from
call_encode() to all XDR encoding functions, rather than building
an xdr_stream in every XDR encoding function in the kernel.

Same idea as the NLM v3 XDR overhaul.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/Makefile
fs/lockd/clnt4xdr.c [new file with mode: 0644]
fs/lockd/xdr4.c