Skip to content

Commit

Permalink
NFS: Introduce new-style XDR decoding functions for NFSv2
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 eventually want to be able to pass xdr_streams
from call_decode() to all XDR decoding functions, rather than building
an xdr_stream in every XDR decoding function in the kernel.

Static helper functions are left without the "inline" directive.  This
allows the compiler to choose automatically how to optimize these for
size or speed.

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>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Dec 16, 2010
1 parent 9d5a643 commit e4f9323
Show file tree
Hide file tree
Showing 2 changed files with 1,451 additions and 84 deletions.
Loading

0 comments on commit e4f9323

Please sign in to comment.