Re: [PATCH net] rxrpc: Bound the OOB challenge queue per connection
From: Paolo Abeni
Date: Tue Dec 01 2026 - 09:22:22 EST
On 11/23/26 02:13, Lin Ma wrote:
rxrpc_notify_socket_oob() adds CHALLENGE packets to the owning socket'sLooks reasonable to me. @David: could you please have a look here?
recvmsg_oobq without any limit. A peer that keeps sending CHALLENGEs on
an existing connection can therefore grow that queue, and the
pending_oobq tree it feeds, without bound if the socket owner never
reads or responds to them. Each queued skb also holds a reference to
the connection.
A connection cannot make progress until a CHALLENGE is answered, so
there is no point in retaining an arbitrarily deep backlog of them.
Count the outstanding OOB skbs against the connection and drop new
CHALLENGEs once a small limit is reached. The count is dropped when the
skb is finally freed, whether by the userspace response path, the kernel
OOB API or socket teardown.
Dropping the packet consumes it without sending a reject, so a flood
does not abort the connection; if the application cannot keep up, the
existing call and connection timeouts still apply.
Fixes: 5800b1cf3fd8 ("rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE")
Signed-off-by: Lin Ma <linma@xxxxxxxxxx>
Thanks,
Paolo