]> git.baikalelectronics.ru Git - kernel.git/commit
svcrpc: don't error out on small tcp fragment
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 26 Jun 2013 14:55:40 +0000 (10:55 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 1 Jul 2013 21:32:04 +0000 (17:32 -0400)
commit9ef71742ca346be473baf6102c0d945ec1546453
tree2dcc564979512da4e0db2975eca9ad0b3c662b85
parentb8231187ec548bd23540ac723e54f7b296a7d042
svcrpc: don't error out on small tcp fragment

Though clients we care about mostly don't do this, it is possible for
rpc requests to be sent in multiple fragments.  Here we have a sanity
check to ensure that the final received rpc isn't too small--except that
the number we're actually checking is the length of just the final
fragment, not of the whole rpc.  So a perfectly legal rpc that's
unluckily fragmented could cause the server to close the connection
here.

Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c