diff options
author | 2012-06-20 09:58:35 -0400 | |
---|---|---|
committer | 2012-06-28 17:20:41 -0400 | |
commit | bfeea1dc1c9238f9e5a17a265489ecd0d19f66bb (patch) | |
tree | 009163b2f4c0255599d3c781a833c2dcfaa621ed /tools/perf/scripts/python/check-perf-trace.py | |
parent | SUNRPC: Clean up xdr_set_iov() (diff) | |
download | linux-dev-bfeea1dc1c9238f9e5a17a265489ecd0d19f66bb.tar.xz linux-dev-bfeea1dc1c9238f9e5a17a265489ecd0d19f66bb.zip |
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 <Trond.Myklebust@netapp.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions