]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix a client regression when handling oversized replies
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 16:47:34 +0000 (12:47 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 15 Mar 2019 17:06:21 +0000 (13:06 -0400)
commitf38d59416cb0a85978650df6863d216009a91998
tree2990623cbed5edec300f54d2e46184f7c95be2ca
parent4431a672b1b0ce3e2f82ed10d58a90fc8b1f9e1b
SUNRPC: Fix a client regression when handling oversized replies

If the server sends a reply that is larger than the pre-allocated
buffer, then the current code may fail to register how much of
the stream that it has finished reading. This again can lead to
hangs.

Fixes: 22f0cae7313c ("SUNRPC: Handle zero length fragments correctly")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c