From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795894068; b=L/RQHRFJ3lSyIviJeHGZM6LJRbWRVKceggV8Uci7QR64AbaE/wMyLOZtV3BVGcT88mqR XWR0kTmnBTftNV+EqcuXFVFh/iSgROv69kxKvsJo35UKz5UopdWeNFIzoMhrEESSxEDHT fxN4GsT1ts2aalVzflHAnLiEnU9sRD3cvy1t5f2sbehbFOR23No5SVE/l+LegXqKn2WUH 3coWPvmITbNvYCtErCBv3cGd0V47lXTQJdnRgF7+/5l3EmPWejrjhe2MvftczsHOv1JwN AmPVlV9BuHR77WQZMvh8LiMiHCgrkcWG2ZjK/n8OfgHeSNWLw2qAlovtgiu+YSifIcQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795894068; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=nOVvk6BUQR2QMTf8OGGpAawg0OGPo9f9WG5PAQA186k=; b=ocaY2Z0jpzzTQI8J/97WFM0M3dV2fTLiT2dMlC68cvWyAJ08d7j/pYgzUGV2wNkzJse3 uOAtkPVXdFJekeBDoKCi8J6GW9HpSCSyuC4jLJMR2mlbL9XB2bXeiWr9+D4JQPEYiaYOg oHg78BEuJS+XJWP6KHoZyBQXJMRG/8y/SzocDE7MqFbzMSHImS922XaBBUM+SyoF3NemJ AnO6qzNTyOUuhxzySoYldV0d4OhtHNa/oO8M1+u/MGJQ30880tqXlYjcEqdwIMwfbMnqX O3TqD6Bq0rsWVtQjwYLF3RX/rOW6QF41+xP6s2iO9MLohoVjR5Ni+51o3uChe7qhm3g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fXerTB9J; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 041FF606A31C; Sat, 28 Nov 2026 19:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fXerTB9J Received: by smtp.kernel.org (Postfix) with ESMTPSA id 870EF1F00893; Sat, 28 Nov 2026 19:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795894067; bh=nOVvk6BUQR2QMTf8OGGpAawg0OGPo9f9WG5PAQA186k=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fXerTB9JB+ZDr7MXeyKlQbCoEiRQ88/Uu861L8PUcjrnPmtSzWjtAPTG/DGjbExoA 3oGwdferlx6NuD9mT2upggXf+wailZLVj3TSBrnSB+AetjJvUee7VpIvoeUoAxHq4f m1cZhNnX4i0kWUFZ2zcUinXJzrTFAXLyDAH11bGLbOceCFND26fyQ1XrzH+nWrfhVL RkZxLT2pa7MEExfXv8KFlRSHwWWKA9OGn/PdCrJVBjHtotfeIv1a6SqEotFB/Gosor JyYLohrBG1DfmqPEKhau3Pc42hG2rLFSKmnxsz3tSBc/pf5KH2e3YOoj6p1TuPu7DP +vRMC6qN7NalA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit Reply-To: sashiko-reviews@lists.linux.dev To: "Andrew Stellman" Cc: linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Christian Borntraeger" In-Reply-To: <20261128191730.30196-1-bugs@stellman-greene.com> References: <20261128191730.30196-1-bugs@stellman-greene.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 28 Nov 2026 19:27:47 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Andrew Stellman >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Fixes: b4ba4652b3f8 ("net/smc: extend LLC layer for SMC-Rv2") > Signed-off-by: Andrew Stellman Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261128191730.3019= 6-1-bugs@stellman-greene.com?part=3D1