All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hui Peng" <benquike@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH] net/rds: fix incoming message refcount leak and header bounds check in rds_recv.c
Date: Sun, 20 Sep 2026 22:34:37 +0000	[thread overview]
Message-ID: <20260920223437.D12F51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260919223429.3882046-1-benquike@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] net/rds: commit message claims refcount fix but patch modifies latency trace
--

commit 80f53e33ea420eaf26746196c2c667ca4d80ade2
Author: Hui Peng <benquike@gmail.com>

net/rds: fix incoming message refcount leak and header bounds check in rds_recv.c

This commit modifies rds_cmsg_recv() to add a zero-check for latency trace
calculations.

> net/rds: fix incoming message refcount leak and header bounds check in rds_recv.c
>
> In net/rds/recv.c, ensure incoming RDS message references (rds_inc_put)
> and socket receive queue bounds are properly balanced when handling
> error or truncated incoming frames.

[Severity: Medium]
Does the commit message accurately describe the included changes?

The message explicitly claims to fix a refcount leak involving rds_inc_put
and a receive queue bounds imbalance. However, the actual code changes only
add a zero-check to diagnostic latency trace calculations:

net/rds/recv.c:rds_cmsg_recv() {
    ...
    if (inc->i_rx_lat_trace[j + 1] &&
        inc->i_rx_lat_trace[j])
        t.rx_trace[i] = inc->i_rx_lat_trace[j + 1] -
                        inc->i_rx_lat_trace[j];
    ...
}

Are the refcount and receive queue bounds fixes missing from this patch?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260919223429.3882046-1-benquike@gmail.com?part=1

  reply	other threads:[~2026-09-20 22:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 22:34 [PATCH] net/rds: fix incoming message refcount leak and header bounds check in rds_recv.c Hui Peng
2026-09-20 22:34 ` sashiko-bot [this message]
2026-09-20 23:19 ` netdev-bot+sashiko
2026-09-22  6:46 ` Allison Henderson

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=20260920223437.D12F51F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=benquike@gmail.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.