]> git.dujemihanovic.xyz Git - linux.git/commit
rxrpc: Clients must accept conn from any address
authorJeffrey Altman <jaltman@auristor.com>
Fri, 19 Apr 2024 16:30:57 +0000 (13:30 -0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 May 2024 21:49:56 +0000 (14:49 -0700)
commit8953285d7bd63c12b007432a9b4587fa2fad49fb
treef872de11c157ce1c2ca4cee062ee2f1e12895e86
parentd091e579b864fa790dd6a0cd537a22c383126681
rxrpc: Clients must accept conn from any address

The find connection logic of Transarc's Rx was modified in the mid-1990s
to support multi-homed servers which might send a response packet from
an address other than the destination address in the received packet.
The rules for accepting a packet by an Rx initiator (RX_CLIENT_CONNECTION)
were altered to permit acceptance of a packet from any address provided
that the port number was unchanged and all of the connection identifiers
matched (Epoch, CID, SecurityClass, ...).

This change applies the same rules to the Linux implementation which makes
it consistent with IBM AFS 3.6, Arla, OpenAFS and AuriStorFS.

Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: Jeffrey Altman <jaltman@auristor.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Link: https://lore.kernel.org/r/20240419163057.4141728-1-marc.dionne@auristor.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/rxrpc/conn_object.c