diff options
author | David Howells <dhowells@redhat.com> | 2020-01-30 21:50:36 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-01-30 21:50:41 +0000 |
commit | f71dbf2fb28489a79bde0dca1c8adfb9cdb20a6b (patch) | |
tree | c0756fa7c369e29f1f834e934f0068f34b996b80 /lib | |
parent | fac20b9e738523fc884ee3ea5be360a321cd8bad (diff) | |
download | lwn-f71dbf2fb28489a79bde0dca1c8adfb9cdb20a6b.tar.gz lwn-f71dbf2fb28489a79bde0dca1c8adfb9cdb20a6b.zip |
rxrpc: Fix insufficient receive notification generation
In rxrpc_input_data(), rxrpc_notify_socket() is called if the base sequence
number of the packet is immediately following the hard-ack point at the end
of the function. However, this isn't sufficient, since the recvmsg side
may have been advancing the window and then overrun the position in which
we're adding - at which point rx_hard_ack >= seq0 and no notification is
generated.
Fix this by always generating a notification at the end of the input
function.
Without this, a long call may stall, possibly indefinitely.
Fixes: 248f219cb8bc ("rxrpc: Rewrite the data and ack handling code")
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions