Skip to content

Commit

Permalink
lockd: Introduce new-style XDR functions for NLMv4
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: J. Bruce Fields <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
chucklever authored and Trond Myklebust committed Dec 16, 2010
1 parent f604870 commit 3460f29
Show file tree
Hide file tree
Showing 3 changed files with 622 additions and 256 deletions.
2 changes: 1 addition & 1 deletion fs/lockd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ obj-$(CONFIG_LOCKD) += lockd.o

lockd-objs-y := clntlock.o clntproc.o clntxdr.o host.o svc.o svclock.o \
svcshare.o svcproc.o svcsubs.o mon.o xdr.o grace.o
lockd-objs-$(CONFIG_LOCKD_V4) += xdr4.o svc4proc.o
lockd-objs-$(CONFIG_LOCKD_V4) += clnt4xdr.o xdr4.o svc4proc.o
lockd-objs := $(lockd-objs-y)
Loading

0 comments on commit 3460f29

Please sign in to comment.