Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Andrew Lunn
Sat, 31 Oct 2026 13:43
Re: [PATCH] rxrpc: Serialize client connection IDR updates
Author: Andrew Lunn
Date: Sat, 31 Oct 2026 13:43
Date: Sat, 31 Oct 2026 13:43
37 lines
9794 bytes
9794 bytes
On Thu, Oct 29, 2026 at 09:21:29PM -0700, Kyle Zeng wrote:
> The common connection destructor calls rxrpc_kill_client_conn() for
> service connections as well as client connections. A service connection
> gets its CID from the peer and never owns an entry in local->conn_ids.
> Its destruction can therefore remove an unrelated client connection.
>
> The final reference can be dropped by the service reaper or a call
> destruction worker, outside the owning local endpoint's I/O thread.
> Client connection destruction can also run off-thread, and can remove an
> ID already released by rxrpc_unbundle_conn(). These writers can race
> idr_alloc_cyclic(), corrupting the radix tree and its RCU callbacks. A
> second removal can also delete a new owner after an ID has been reused.
>
> Only run client cleanup for client connections. Restore a per-local IDR
> writer lock and the client-ID ownership flag, clearing the flag under the
> lock when releasing the ID. Serialize IDR destruction with the same
> lock. This covers deferred final puts without changing connection
> expiry or the RCU lookup path.
>
> Fixes: 9d35d880e0e4 ("rxrpc: Move client call connection to the I/O thread")
> Signed-off-by: Kyle Zeng <kylebot@openai.com>
> ---
> I have a reproducer for this issue and can share via DM
Please take a read of
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
You need to set the subject line correctly to indicate the three they
are applied to.
All the patches you have posted are very likely to be sent to
/dev/null because of this. It is a good idea to start slow, only one
patch at a time, and figure out the processes.
Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads