From: Chuck Lever Date: Sun, 9 Aug 2009 19:09:43 +0000 (-0400) Subject: SUNRPC: Introduce new xdr_stream-based decoders to rpcb_clnt.c X-Git-Tag: v2.6.32-rc1~412^2~48^2~9^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c077df009f2f329875051ac5283df235288689;p=pandora-kernel.git SUNRPC: Introduce new xdr_stream-based decoders to rpcb_clnt.c Replace the open-coded decode logic for PMAP_GETPORT/RPCB_GETADDR with an xdr_stream-based implementation, similar to what NFSv4 uses, to protect against buffer overflows. The new implementation also checks that the incoming port number is reasonable. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed