Re: [syzbot] kernel BUG in rxrpc_put_call

From: David Howells
Date: Wed Jan 11 2023 - 04:46:10 EST


#syz test: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git master

diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c
index 3ded5a24627c..f3c9f0201c15 100644
--- a/net/rxrpc/call_object.c
+++ b/net/rxrpc/call_object.c
@@ -294,7 +294,7 @@ static void rxrpc_put_call_slot(struct rxrpc_call *call)
static int rxrpc_connect_call(struct rxrpc_call *call, gfp_t gfp)
{
struct rxrpc_local *local = call->local;
- int ret = 0;
+ int ret = -ENOMEM;

_enter("{%d,%lx},", call->debug_id, call->user_call_ID);