Skip to content
Commit 880a88f3 authored by David Howells's avatar David Howells Committed by Jakub Kicinski
Browse files

rxrpc: Fix oops due to non-existence of prealloc backlog struct



If an AF_RXRPC service socket is opened and bound, but calls are
preallocated, then rxrpc_alloc_incoming_call() will oops because the
rxrpc_backlog struct doesn't get allocated until the first preallocation is
made.

Fix this by returning NULL from rxrpc_alloc_incoming_call() if there is no
backlog struct.  This will cause the incoming call to be aborted.

Reported-by: default avatarJunvyyang, Tencent Zhuque Lab <zhuque@tencent.com>
Suggested-by: default avatarJunvyyang, Tencent Zhuque Lab <zhuque@tencent.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
cc: LePremierHomme <kwqcheii@proton.me>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Willy Tarreau <w@1wt.eu>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/20250708211506.2699012-3-dhowells@redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 69e41867
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment