diff options
| author | David Howells <[email protected]> | 2025-07-08 21:15:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-10 02:41:44 +0000 |
| commit | 880a88f318cf1d2a0f4c0a7ff7b07e2062b434a4 (patch) | |
| tree | 4a96dd19df6e479a0d8d0ff9a4b57390d2c23995 /net/unix/af_unix.c | |
| parent | rxrpc: Fix bug due to prealloc collision (diff) | |
| download | kernel-880a88f318cf1d2a0f4c0a7ff7b07e2062b434a4.tar.gz kernel-880a88f318cf1d2a0f4c0a7ff7b07e2062b434a4.zip | |
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: Junvyyang, Tencent Zhuque Lab <[email protected]>
Suggested-by: Junvyyang, Tencent Zhuque Lab <[email protected]>
Signed-off-by: David Howells <[email protected]>
cc: LePremierHomme <[email protected]>
cc: Marc Dionne <[email protected]>
cc: Willy Tarreau <[email protected]>
cc: Simon Horman <[email protected]>
cc: [email protected]
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
