Skip to content
Commit bfeea1dc authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 1537693c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment