From: Trond Myklebust Date: Wed, 20 Jun 2012 13:58:35 +0000 (-0400) Subject: SUNRPC: Don't decode beyond the end of the RPC reply message X-Git-Tag: v3.6-rc1~38^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfeea1dc1c9238f9e5a17a265489ecd0d19f66bb;p=pandora-kernel.git SUNRPC: Don't decode beyond the end of the RPC reply message Now that xdr_inline_decode() will automatically cross into the page buffers, we need to ensure that it doesn't exceed the total reply message length. This patch sets up a counter that tracks the number of words remaining in the reply message, and ensures that xdr_inline_decode, xdr_read_pages and xdr_enter_page respect the end of message boundary. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed