Re: [syzbot] [net?] [afs?] kernel BUG in rxrpc_purge_client_connections

From: Edward Adam Davis

Date: Tue Sep 22 2026 - 23:40:57 EST


From: Edward Aadm Davis <eadavis@xxxxxxxx>

#syz test: upstream f0100363d8c3

diff --git a/net/rxrpc/conn_client.c b/net/rxrpc/conn_client.c
index 48519f0de185..9f13520be249 100644
--- a/net/rxrpc/conn_client.c
+++ b/net/rxrpc/conn_client.c
@@ -335,6 +335,7 @@ int rxrpc_look_up_bundle(struct rxrpc_call *call, gfp_t gfp)
/*
* Allocate a new connection and add it into a bundle.
*/
+static void rxrpc_unbundle_conn(struct rxrpc_connection *conn);
static bool rxrpc_add_conn_to_bundle(struct rxrpc_bundle *bundle,
unsigned int slot)
{
@@ -344,6 +345,7 @@ static bool rxrpc_add_conn_to_bundle(struct rxrpc_bundle *bundle,

old = bundle->conns[slot];
if (old) {
+ rxrpc_unbundle_conn(old);
bundle->conns[slot] = NULL;
bundle->conn_ids[slot] = 0;
trace_rxrpc_client(old, -1, rxrpc_client_replace);