🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25551

Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit

#25551
From: Dust Li
Date: Wed, 02 Dec 2026 01:31
33 lines
10139 bytes
On 2026-12-01 16:31:55, Andrew Stellman wrote:
>On Tue, Dec 01, 2026 at 02:45:27PM +0530, Mahanta Jambigi wrote:
>> Would dropping role == SMC_CLNT be the *better fix*?
>
>I tried it. On mainline (fe6ff8d5d675) in arm64 QEMU with KASAN,
>lockdep and SoftRoCE, I opened 260 SMC-R connections from one client to
>one server, held them, and then closed them.
>
>Without any patch, both runs closed cleanly. With role == SMC_CLNT
>dropped, the client hung in close() in both runs. The stacks show a
>link-group termination worker waiting in smc_cdc_wait_pend_tx_wr()
>while close() waits for the same socket lock in smc_release(). With 64
>connections, both builds closed cleanly.
>
>I haven't found why the CDC completion never comes, and I haven't run a
>peer that reuses its QPN. Dust, as I said before, the 508 count came
>from a test-only change inside the writer, not from real connections.
>
>Given that, would you rather keep the cap in smc_llc_fill_ext_v2() as
>sent, or should I keep looking into the hang with the client bound?

IIUC, that looks like a potential issue that can never be triggered in
the current Linux code?

If so, I don't think it's necessary to add the bound here.

I think it makes more sense to focus on reachable issues first, such as
a client violating the protocol and sending invalid CLC messages to the
server.

Best regards,
Dust
Technical Details
Message-ID: <aw903Y4iowWYuz9G@linux.alibaba.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375473-linux-kernel-netdev=dewy.ru
References: <20261128191730.30196-1-bugs@stellman-greene.com> <d4a8844e-9c1c-48c9-969c-f03696ace29a@linux.ibm.com> <20261201213155.65668-1-bugs@stellman-greene.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375473-linux-kernel-netdev=dewy.ru
From: dust.li@linux.alibaba.com (Dust Li)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/smc: cap ADD LINK v2 rkeys to the receive limit
Date: Wed, 2 Dec 2026 09:31:09 +0800
Organization: Usenet Network
Message-ID: <aw903Y4iowWYuz9G@linux.alibaba.com>
References: <20261128191730.30196-1-bugs@stellman-greene.com>
 <d4a8844e-9c1c-48c9-969c-f03696ace29a@linux.ibm.com>
 <20261201213155.65668-1-bugs@stellman-greene.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1860782"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:5Mh54uMpdegsyChi0NSqMaXecG4= sha256:fHk1GV4is5AlnOk0VEn8t5GNJ1ofnztpHMj/NMWjx5g=
	sha1:GEldZ3g3cLAUyWkVGe8Z9pAQOco= sha256:ZapWm5s3vwDaBlQGM1TQ795Vt5E1L2lSMbOgLdF5vpI=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 200DA11750F; Wed,  2 Dec 2026 04:31:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -10.55
X-Spam-Status: No, score=-10.55 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, USER_IN_DEF_DKIM_WL=-7.5]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.alibaba.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ISlO0W6jHBKJ;
	Wed,  2 Dec 2026 04:31:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375473-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EEB901171EB; Wed,  2 Dec 2026 04:31:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 4E6C22BED0; Wed,  2 Dec 2026 01:31:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796175076;
	b=ua9PcpNvCLzhcGJa/R1oVPidyUPpnlat+gU0weXfd9c0sDoYQAiN6i5mnjfYj2qOh/Qy
	 mTu8GrggndwKrgtHhXwH7Xm1S1Dz5RnW91msVlvQNdKlNBxVmHXMSOhtHSoNkdTBuSW2o
	 o54xqokP0TqnZdutZI7H9381OuB1TeLJMoZOBy5zvZE78wpmIpUmvhRsAe0iU6viCOssT
	 DheW2BZkSMf/N3ISkWnjvzsIhmGZXf3DTUaeU4lHSlUEpeeD4moCT00rDCaYG33NHziK9
	 eKhGmkUggNdI7+LoAZehrb3gTesjgdYNUhg8WZsZw7NOAgAZKNDMYYsKY+at/jAcMrg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796175076;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
	 X-Alimail-AntiSpam:Received:Date:From:To:Cc:Subject:Message-ID:
	 Reply-To:References:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To;
	bh=Db1sDLpZmg5qQ2+XLuwLrp4xzrDpba+5gGhvv7ckoJs=;
	b=zR4874Uj7OUK/RZN7B35TufuKAKwW6wEaJGaMdPjedSwXwJ73uAf2nkoSueMw1r2K3O4
	 M0HnCSMzQvhry9S6hAVdAR8233HBSeewwkv47mPtfbj5g08TMmLMyCOf+9J6S4/beCuwx
	 M/2J+8YL7sohv5CljkHuGTnsnMTRfBpOMpw4oJ3BDImpblY5Vk+kiNgAySNrV0hSvM3c3
	 qYnpi8KM4MwPZ/3eVigU0eaWh/Og5LSZISEZ9Mnq2gU7kl75mUZTjrmYANva71VkuWt0I
	 +V/SO1cQH170Kke5e5bpg6YbLYtc0EgnUEVMHe3QIHkeDb5s3hVDo230Esh4A6gFQrA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=VXlEW+g2;
	dmarc=pass header.from=linux.alibaba.com;
	spf=pass smtp.mailfrom=linux.alibaba.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id ACC62606A330;
	Wed,  2 Dec 2026 01:31:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=VXlEW+g2
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.131
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796175075;
	b=pB1EbE5/swyorP+hbXhB2LX7pJfdre2yTix6DeQRtKlD09AItsO1VYIg9IyBHSop7xVO
	 ZB0iL1utRpQNsypgAil7SJ2X+s6DZ4wNKPqkfmyjXlzzPb2rzZRr9zNpwxw4f1kMajBSk
	 uFTzU0SD1Pb3KuAcJnJ2twTM4OHqi1KN6Whk9N8WoIIy4wLCbZym18PtJ1U2f8AVGyT7y
	 perRVsn+GJPx8L9sII0sh/Fq02clwAu0bmM1hPGhn1H2/lAjSAfy14tfIWfuk1XsJtfoO
	 dV23hz8kpJYk9qdXjNvF1RSiFe2qN2JPwW2SZnRWnckZWeImDWcqMZmkly1sIEQNpBw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796175075;
	h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:Date:From:To:
	 Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=Db1sDLpZmg5qQ2+XLuwLrp4xzrDpba+5gGhvv7ckoJs=;
	b=FKEw3o0Mga0TIA83DD7vRhO+Ds5VJXUjoCX7IshyqI9r8pQwIv0S/LFGPpVvjYhxDj9u
	 3Gg1R7ZO/5ZpGe1LecM9zsNUAsWbXo6WnkPEHCO1iRWOumJLGxRRS1sfw8a0EKN9gltnw
	 IlnVll72ByQnKOGxObqFhjL8VPGAirbIr2Us40zajCmbocMFvW4Dl0jp7f/bnVaop7u6c
	 frnhbWbn2Srb9Zbl6bTr3Dl14A74q95wwDb6YV1SVMKeJ6txfKqjslsby3ej7sFls3t45
	 uN3PZ3x3iOB6UHT0iNbV0ddv0EAHKjMpS2bet9/vXCfuZqYZjqC8qTMuRxLCrUVp/nA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.alibaba.com;
	spf=pass smtp.mailfrom=linux.alibaba.com;
	dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=VXlEW+g2;
	arc=none smtp.remote-ip=115.124.30.131
X-Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08252606A31A;
	Wed,  2 Dec 2026 01:31:13 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 08252606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=linux.alibaba.com; s=default;
	t=1796175070; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type;
	bh=Db1sDLpZmg5qQ2+XLuwLrp4xzrDpba+5gGhvv7ckoJs=;
	b=VXlEW+g2PhNtFlWh7RJs8o0AK4kguNOuCkjuZ9JOf1Ny3Zv88WWZSTEX+6t06Na4ZKJmbAx8TnOzXVwvfj1roSYwZIDHB/h8W3fTvDe5s4lOEblrSkF2TqCNpaxWVxno1s2PB+qu3a1NKsll4Od84tpWalxaNzGC/BkUUVLEJXQ=
X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam011083073210;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0XG50AMK_1796175069;
X-Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0XG50AMK_1796175069 cluster:ay36)
          by smtp.aliyun-inc.com;
          Wed, 02 Dec 2026 09:31:09 +0800
X-Cc: Tony Lu <tonylu@linux.alibaba.com>, Wen Gu <guwen@linux.alibaba.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	Willem de Bruijn <willemb@google.com>, linux-rdma@vger.kernel.org,
	linux-s390@vger.kernel.org, netdev@vger.kernel.org
X-Reply-To: dust.li@linux.alibaba.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261201213155.65668-1-bugs@stellman-greene.com>