From: Paolo Abeni <pabeni@redhat.com>
To: Lin Ma <linma@zju.edu.cn>, David Howells <dhowells@redhat.com>,
Marc Dionne <marc.dionne@auristor.com>
Cc: netdev@vger.kernel.org, linux-afs@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] rxrpc: Bound the OOB challenge queue per connection
Date: Tue, 1 Dec 2026 15:22:10 +0100 [thread overview]
Message-ID: <5199bd7c-c504-404a-878d-86dc0bb5e986@redhat.com> (raw)
In-Reply-To: <20261123011320.4032340-1-linma@zju.edu.cn>
On 11/23/26 02:13, Lin Ma wrote:
> rxrpc_notify_socket_oob() adds CHALLENGE packets to the owning socket's
> 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@zju.edu.cn>
Looks reasonable to me. @David: could you please have a look here?
Thanks,
Paolo
prev parent reply other threads:[~2026-12-01 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 1:13 [PATCH net] rxrpc: Bound the OOB challenge queue per connection Lin Ma
2026-11-23 1:18 ` netdev-bot+sinfo
2026-11-23 2:12 ` Lin Ma
2026-12-01 14:22 ` Paolo Abeni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5199bd7c-c504-404a-878d-86dc0bb5e986@redhat.com \
--to=pabeni@redhat.com \
--cc=dhowells@redhat.com \
--cc=linma@zju.edu.cn \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox