]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't try to parse incomplete RPC messages
authorTrond Myklebust <trondmy@gmail.com>
Mon, 16 Sep 2019 13:12:19 +0000 (09:12 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 20 Sep 2019 19:15:24 +0000 (15:15 -0400)
commit1f1169acaff1ad3601ba57ca200ec72d14e4c694
tree45468b00aca4baedcad2cbbd9c6ed5fba9c0bd21
parenta4051bb7bc7222545ff7492fc649a8fcb5089d11
SUNRPC: Don't try to parse incomplete RPC messages

If the copy of the RPC reply into our buffers did not complete, and
we could end up with a truncated message. In that case, just resend
the call.

Fixes: 9ae1b90a0c11d ("SUNRPC: Use struct xdr_stream when decoding...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/clnt.c