rxrpc: Don't let ack.previousPacket regress
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 08:03:24 +0000 (09:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:02 +0000 (10:23 +0200)
commit12098cebf07bb998fd0ab4d4d13ba24e7438e236
treef6fb79aec901b083a0f320860fcafc28530e917c
parent9d5c62e63ae7e7e2c4755e2463d4c91b35b58663
rxrpc: Don't let ack.previousPacket regress

[ Upstream commit 81524b6312535897707f2942695da1d359a5e56b ]

The previousPacket field in the rx ACK packet should never go backwards -
it's now the highest DATA sequence number received, not the last on
received (it used to be used for out of sequence detection).

Fixes: 248f219cb8bc ("rxrpc: Rewrite the data and ack handling code")
Signed-off-by: David Howells <dhowells@redhat.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
net/rxrpc/output.c