linux-yocto/net/rxrpc
David Howells d1ff5f9d2c rxrpc: Fix oops due to non-existence of prealloc backlog struct
commit 880a88f318 upstream.

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: Junvyyang, Tencent Zhuque Lab <zhuque@tencent.com>
Suggested-by: Junvyyang, Tencent Zhuque Lab <zhuque@tencent.com>
Signed-off-by: David 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: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-17 18:37:07 +02:00
..
af_rxrpc.c rxrpc: Improve setsockopt() handling of malformed user input 2024-12-05 14:02:35 +01:00
ar-internal.h rxrpc: Fix call state set to not include the SERVER_SECURING state 2025-02-17 10:05:02 +01:00
call_accept.c rxrpc: Fix oops due to non-existence of prealloc backlog struct 2025-07-17 18:37:07 +02:00
call_event.c rxrpc: Extract useful fields from a received ACK to skb priv data 2024-03-05 23:35:26 +00:00
call_object.c rxrpc: Fix call state set to not include the SERVER_SECURING state 2025-02-17 10:05:02 +01:00
call_state.c
conn_client.c rxrpc: Fix missing locking causing hanging calls 2024-11-07 11:30:34 -08:00
conn_event.c rxrpc: Fix call state set to not include the SERVER_SECURING state 2025-02-17 10:05:02 +01:00
conn_object.c rxrpc: Fix the rxrpc_connection attend queue handling 2025-02-17 10:05:00 +01:00
conn_service.c
input.c rxrpc: Fix call state set to not include the SERVER_SECURING state 2025-02-17 10:05:02 +01:00
insecure.c rxrpc: Fix using alignmask being zero for __page_frag_alloc_align() 2024-04-30 18:30:43 -07:00
io_thread.c rxrpc: Fix a race between socket set up and I/O thread creation 2024-10-03 16:23:20 -07:00
Kconfig
key.c
local_event.c
local_object.c rxrpc: Fix a race between socket set up and I/O thread creation 2024-10-03 16:23:20 -07:00
Makefile
misc.c rxrpc: Use ktimes for call timeout tracking and set the timer lazily 2024-03-05 23:35:25 +00:00
net_ns.c
output.c rxrpc: Record probes after transmission and reduce number of time-gets 2024-03-05 23:35:25 +00:00
peer_event.c rxrpc, afs: Fix peer hash locking vs RCU callback 2025-02-08 09:58:05 +01:00
peer_object.c rxrpc, afs: Fix peer hash locking vs RCU callback 2025-02-08 09:58:05 +01:00
proc.c rxrpc: Use ktimes for call timeout tracking and set the timer lazily 2024-03-05 23:35:25 +00:00
protocol.h rxrpc: Fix the names of the fields in the ACK trailer struct 2024-02-29 15:49:57 +00:00
recvmsg.c
rtt.c rxrpc: Use ktimes for call timeout tracking and set the timer lazily 2024-03-05 23:35:25 +00:00
rxkad.c rxrpc: Fix using alignmask being zero for __page_frag_alloc_align() 2024-04-30 18:30:43 -07:00
rxperf.c rxrpc: rxperf: Fix missing decoding of terminal magic cookie 2025-03-07 18:25:29 +01:00
security.c
sendmsg.c rxrpc: Fix call state set to not include the SERVER_SECURING state 2025-02-17 10:05:02 +01:00
server_key.c
skbuff.c
sysctl.c net: Remove ctl_table sentinel elements from several networking subsystems 2024-05-03 13:29:42 +01:00
txbuf.c rxrpc: Fix using alignmask being zero for __page_frag_alloc_align() 2024-04-30 18:30:43 -07:00
utils.c