OSDN Git Service

rxrpc: Don't let ack.previousPacket regress
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 08:03:24 +0000 (09:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:30:53 +0000 (21:30 +0100)
commit81524b6312535897707f2942695da1d359a5e56b
treefcd07bf0d8f48e2e0df44cf25b5ee0368a73ef31
parent8940ba3cfe4841928777fd45eaa92051522c7f0c
rxrpc: Don't let ack.previousPacket regress

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>
net/rxrpc/ar-internal.h
net/rxrpc/input.c
net/rxrpc/output.c