]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e95317e03422cdc00c888606a2e9d2439dd00a8
treebe7c8acc0c8c971114f8136534c613395a4d2951
parentfb8a32bf34f4476cd2f8ccf827d1fbdf71de9050
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