From: sashiko-bot@kernel.org
To: "Weidong Wang" <weidongw@illinois.edu>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net v3] net/rds: tcp: bound the memory held for an incoming message
Date: Wed, 02 Dec 2026 05:29:28 +0000 [thread overview]
Message-ID: <sashiko-outbox-244889@kernel.org> (raw)
In-Reply-To: <20261201-h047-send-v3-1-a70043d448b1@illinois.edu>
> From: Weidong Wang <weidongw@illinois.edu>
>
> rds_tcp_data_recv() queues pskb_extract() clones on the incoming
> message until h_len bytes, taken from the peer's header, have arrived.
> The clones are not charged to the socket, so a peer can make the
> receiver hold up to 4 GiB by announcing a large h_len, or over 1 GiB
> for a 1 MiB message sent one byte per segment, as each clone keeps the
> truesize of the skb it was cut from.
>
> Drop the connection when h_len exceeds RDS_MAX_MSG_SIZE, the limit
> rds_sendmsg() enforces since v4.11, and discard the rest of the stream
> until shutdown. Copy, rather than clone, pieces smaller than a quarter
> of their skb's truesize, appending to a linear skb until it is full, so
> that a message holds at most about four times its size.
>
> Found by an AI code review agent and reproduced under QEMU. The fix and
> changelog were drafted with AI assistance (Claude), then reviewed and
> tested by the submitter.
>
> Fixes: 70041088e3b9 ("RDS: Add TCP transport to RDS")
> Cc: stable@vger.kernel.org
> Cc: Zijie Zhao <zijie4@illinois.edu>
> Signed-off-by: Weidong Wang <weidongw@illinois.edu>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-h047-send-v3-1-a70043d448b1@illinois.edu?part=1
prev parent reply other threads:[~2026-12-02 5:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 5:23 [PATCH net v3] net/rds: tcp: bound the memory held for an incoming message Weidong Wang via B4 Relay
2026-12-02 5:29 ` sashiko-bot [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=sashiko-outbox-244889@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=weidongw@illinois.edu \
/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