linux-stable/net/rxrpc
David Howells 456a705254 rxrpc: Don't try to resend the request if we're receiving the reply
[ Upstream commit 114af61f88 ]

rxrpc has a timer to trigger resending of unacked data packets in a call.
This is not cancelled when a client call switches to the receive phase on
the basis that most calls don't last long enough for it to ever expire.
However, if it *does* expire after we've started to receive the reply, we
shouldn't then go into trying to retransmit or pinging the server to find
out if an ack got lost.

Fix this by skipping the resend code if we're into receiving the reply to a
client call.

Fixes: 17926a7932 ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:53:50 +02:00
..
af_rxrpc.c rxrpc: Fix send on a connected, but unbound socket 2019-07-31 07:28:45 +02:00
ar-internal.h rxrpc: Fix NULL pointer deref due to call->conn being cleared on disconnect 2020-02-14 16:32:07 -05:00
call_accept.c rxrpc: Fix notification call on completion of discarded calls 2020-06-30 15:37:59 -04:00
call_event.c rxrpc: Don't try to resend the request if we're receiving the reply 2022-06-14 16:53:50 +02:00
call_object.c rxrpc: Fix race between recvmsg and sendmsg on immediate call failure 2020-08-21 09:48:02 +02:00
conn_client.c rxrpc: Fix NULL pointer deref due to call->conn being cleared on disconnect 2020-02-14 16:32:07 -05:00
conn_event.c rxrpc: Fix some missing _bh annotations on locking conn->state_lock 2020-10-14 09:51:14 +02:00
conn_object.c rxrpc: Fix race between recvmsg and sendmsg on immediate call failure 2020-08-21 09:48:02 +02:00
conn_service.c rxrpc: Make service connection lookup always check for retry 2017-09-05 14:39:17 -07:00
input.c rxrpc: Fix handling of rwind from an ACK packet 2020-06-30 15:38:04 -04:00
insecure.c
Kconfig
key.c rxrpc: Fix handling of an unsupported token type in rxrpc_read() 2021-01-23 15:48:47 +01:00
local_event.c rxrpc: Fix IPv6 support 2017-08-29 10:55:20 +01:00
local_object.c rxrpc: Fix transport sockopts to get IPv4 errors on an IPv6 socket 2020-06-03 08:18:11 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
misc.c
net_ns.c rxrpc: Fix service endpoint expiry 2018-02-03 17:39:01 +01:00
output.c rxrpc: Fix NULL pointer deref due to call->conn being cleared on disconnect 2020-02-14 16:32:07 -05:00
peer_event.c rxrpc: Fix possible NULL pointer access in ICMP handling 2020-01-09 10:17:59 +01:00
peer_object.c
proc.c
protocol.h
recvmsg.c rxrpc: Fix race between recvmsg and sendmsg on immediate call failure 2020-08-21 09:48:02 +02:00
rxkad.c rxrpc: Fix a memory leak in rxkad_verify_response() 2020-05-27 16:43:12 +02:00
security.c
sendmsg.c rxrpc: Return an error to sendmsg if call failed 2022-06-14 16:53:46 +02:00
skbuff.c
sysctl.c rxrpc: Fix listen() setting the bar too high for the prealloc rings 2022-06-14 16:53:50 +02:00
utils.c rxrpc: Fix IPv6 support 2017-08-29 10:55:20 +01:00