]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rxrpc: Fix overlapping ACK accounting
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 08:03:18 +0000 (09:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:25:58 +0000 (10:25 +0200)
commit28a51f6fbf0d31afbdc98214a2c721cbb61bc2f4
treec30697399c79d66fcd3ecb0c25c7df03d343c4ff
parenta1c22c604ca6579429af4a42f52946302956b980
rxrpc: Fix overlapping ACK accounting

[ Upstream commit 8940ba3cfe4841928777fd45eaa92051522c7f0c ]

Fix accidental overlapping of Rx-phase ACK accounting with Tx-phase ACK
accounting through variables shared between the two.  call->acks_* members
refer to ACKs received in the Tx phase and call->ackr_* members to ACKs
sent/to be sent during the Rx phase.

Fixes: 1a2391c30c0b ("rxrpc: Fix detection of out of order acks")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeffrey Altman <jaltman@auristor.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/ar-internal.h
net/rxrpc/input.c