Linux s390 Architecture development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Andrew Stellman" <bugs@stellman-greene.com>
Cc: linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"Vasily Gorbik" <gor@linux.ibm.com>,
	"Alexander Gordeev" <agordeev@linux.ibm.com>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>
Subject: Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit
Date: Sat, 28 Nov 2026 19:27:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-238995@kernel.org> (raw)
In-Reply-To: <20261128191730.30196-1-bugs@stellman-greene.com>

> From: Andrew Stellman <astellman@stellman-greene.com>
> 
> smc_llc_fill_ext_v2() writes one 16-byte rkey entry per connection in
> the link group into the 8192-byte SMC-Rv2 work-request buffer. The
> count is lgr->conns_num and has no upper bound. After the headers there
> is room for 507 entries, so a count of 508 writes eight bytes past the
> buffer.
> 
> smc_conn_create() checks max_conns and the rtoken bitmap only for the
> server role, and smc_rtoken_add() reuses an rtoken slot when the peer
> repeats an RMB rkey and address, so a client link group isn't limited
> to 255 connections. I didn't run a case where a peer brought a link
> group to 508 connections.
> 
> Cap the count at SMC_LLC_RKEYS_PER_MSG_V2 (255), the limit that
> [ ... ]
> The fix was drafted with OpenAI GPT-6 (Codex) and this changelog with
> Claude Opus 5.5, and both were reviewed by me.
> 
> Fixes: b4ba4652b3f8 ("net/smc: extend LLC layer for SMC-Rv2")
> Signed-off-by: Andrew Stellman <astellman@stellman-greene.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261128191730.30196-1-bugs@stellman-greene.com?part=1

      reply	other threads:[~2026-11-28 19:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 19:17 [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit Andrew Stellman
2026-11-28 19:27 ` 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-238995@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=bugs@stellman-greene.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-s390@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox