Skip to content
Commit e604aad2 authored by Chuck Lever's avatar Chuck Lever
Browse files

svcrdma: Use struct xdr_stream to decode ingress transport headers



The logic that checks incoming network headers has to be scrupulous.

De-duplicate: replace open-coded buffer overflow checks with the use
of xdr_stream helpers that are used most everywhere else XDR
decoding is done.

One minor change to the sanity checks: instead of checking the
length of individual segments, cap the length of the whole chunk
to be sure it can fit in the set of pages available in rq_pages.
This should be a better test of whether the server can handle the
chunks in each request.

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 2426ddfd
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