Article View: linux.kernel.netdev
Article #18860Re: [PATCH net v2 0/2] net/smc: do not reuse the DMB of a nocopy device
From: Jakub Kicinski
Date: Thu, 19 Nov 2026 00:24
Date: Thu, 19 Nov 2026 00:24
13 lines
8784 bytes
8784 bytes
On Sat, 14 Nov 2026 14:09:27 -0500 Bryam Vargas via B4 Relay wrote: > With DMB nocopy (the dibs loopback device) a peer writes into the other > end's RMB through its own attachment. smc_buf_unuse() puts that DMB back > in the link group's pool with its token still registered, IOW the old > peer can still send its CDCs to it. The next connection that takes the > DMB gets those CDCs, and a peer that attaches after the other end gave > up lands in another connection's DMB. 2/2 stops pooling DMBs on nocopy > devices. This is the reused-DMB case that the v6 cover of the CDC > receive ordering series [1] lists as not fixed; Sashiko flagged it on > v5 2/2 [2]. SNC, DIBS maintainers, could you review this slop?
Technical Details
Message-ID:
<20261118162408.215ca3d1@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366574-linux-kernel-netdev=dewy.ruReferences:
<20261114-b4-disp-4e6374c2-v2-0-3b7050bddef7@proton.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366574-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 0/2] net/smc: do not reuse the DMB of a nocopy device Date: Wed, 18 Nov 2026 16:24:08 -0800 Organization: Usenet Network Message-ID: <20261118162408.215ca3d1@kernel.org> References: <20261114-b4-disp-4e6374c2-v2-0-3b7050bddef7@proton.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2740677"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0eYDP+75XAKEtd+5WUYAQzbYeus= sha256:ro+U21ErACRhu1vue6SPg+KmvNMlTCrGDodPvO+RNEU= sha1:Pu4u7df5fAge+YwfJRLKDoyFQHA= sha256:R+sa1wWwNQhakLZ7/xaC82y8VGHpz3kTpJe/8OxXxp0= 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 B3A4311545E; Thu, 19 Nov 2026 03:24:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 ynMWSLx8m9IR; Thu, 19 Nov 2026 03:24:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366574-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 104CC11545B; Thu, 19 Nov 2026 03:24:16 +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 7F05388CD8; Thu, 19 Nov 2026 00:24:12 +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=1795047851; b=bA+qBdVv1i7T0V2E0YBzIP8r0pFygnDS+6ZiJrq708ycX2kk5/m+prkx/7j22aVTCoX9 XBhR4I5n6dl7qkZad7Iez+kZwZEynbtBisd0zBe886NDyAO8N8vGhSoTzAgOSy53MhSFu xnIspUtJ4tUtiBn5T2l+8eKxUl8ZD3nXee2/rupqutKTdDJZJVfjg6hbDDmk7Fbz5LtF6 7fuGLjbqtdtp57OPpGQuDas6sXp+8iTpHIJejehK78l3ZkucCfqStYqwrwG/W2XnDKXF0 Y47zL7c+cFyMdy8omry4ZpJo3SDX47uCQFWaPw22wEBAdyUeo1REw40oFOPurSgNvig== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795047851; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=5DQIoQAMdc3RoK4joLEe9HZU6OJSgtoLLYIzh8nns8E=; b=Pha0rNe/jSS6ilGzOTHcef835iFN3KfoQ7SL39+MnEnkEkU6qh85//M8QfyBmp1HmNzr 4DgYrO8GSEQY62RS6K8QOKKkKwzEU47i++CUW3d7gZjB+d2lroNaU26K9dBQscvSuqxNg cTBVRGpsaDO9jzZi9TbmXjWc05qEfg/aYUF+VcZRhM4X+DujU7PKMqbVFT21Ngo4FT67o ty/ZP/0mKm+bDZcCkclERQsiQeqcBQSE69dmUy8PUIpo8Pfh0PBinSrbN45GrKDnJMHA1 G6Y1VQU3hSAaoAZfb0XT5+H5hhLUNrLoUOsoP5VsiNoq/vrhclwR4GFIuNxtueioNmQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nT+ML7jQ; 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 0E07A606A334; Thu, 19 Nov 2026 00:24:11 +0000 (UTC) X-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=nT+ML7jQ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795047850; b=bk3rmBTWwl1g1AAadAlqrT/dApSGiqztEPszVifcjLrw8nJ6joYEqT4UJ3vQkFPSDqgK W4eoEcxS9EZ30xhepIu9+aCNO+3y7k+ZVWBxCmAXFBpG0esCQabgDZ+mtEfS5WOeR916H 5HVLko9bhUihQ5GUlD9BDXp2tZz+lQRsFEBxU5FvN138abqsxRO3DHs+2ksm+Bq5ZRhCt teh0O19gqy8qRgTleeOF1yjhs7lxss3n0Na/Wxz6i/KzyBqes+5q+don1hw7SfBfFN3XC NdCLSUhJhlo1CKEEPV0Z4LBhQHAaJj/NDtNGmji771uYOK/qo18t8iyDVbfcT2pi4+Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795047850; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=5DQIoQAMdc3RoK4joLEe9HZU6OJSgtoLLYIzh8nns8E=; b=yNyPRp7WcGXgb8MjJRwEx/W2doEpIoDSDoq/kyjzqiz79L+uHnAg9/FsahsvnwaDnYOs vKseg/dN9wTXOiJRF4ZLrlq4MBQahN0AnQH0vaSoIpLeCmB5dVRPiXRZWCz1vgKMp7bU0 YsQyMbNxGKU468KS3/6VX8nhEoGnEjN5aBpdYoo8phuSSK5ibK84xQCl7CDSorqJWrUj9 IvIvjZ2vMKAn77ZcVFKc9zFlOm2vbSX+FwbVsVvd/Uu5mNmTaysEgJQVSe0W+BdADd421 ksGAnqHHOG07wfNLRTfJ8GXAm1xUFYmf8TPBLfLfQx6NLt0BSY3XR3PI+wet96Y6AEQ== X-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=nT+ML7jQ; arc=none smtp.remote-ip=100.103.45.18 X-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 2D3A2606A325; Thu, 19 Nov 2026 00:24:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 678FB1F000C4; Thu, 19 Nov 2026 00:24:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795047850; bh=5DQIoQAMdc3RoK4joLEe9HZU6OJSgtoLLYIzh8nns8E=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=nT+ML7jQKOF1QZ7zXpvnawOOf13xFe8ENu06cSU/2Z5sLmVgTFtO9KSqPcaDMbkjj Gvn8DNg0oPkWVuFN0zgxDwORXVCq/i6pig1BU9F1cOSmujWBwbeGeuSGrArcDE+LCb QZESMJyeNYQCBuXk1jOL3SCjzfkO4zfhJW9Y4rTioUC8BnH0nyvQPCTZGiAGpqvYf7 McH01KHSAcksKsvvaYTDJRLydi/N6ujvnTNve5YkwhSkK61kvTBTCgKUMvV3TRNJAL N5sNEjLG81FeG3kogg7fmXK4wtmbsULOh36wERv/MULQfcF0Y8JegfQuNIJRURnG/e DWQR2RTsoIegw== X-Cc: Bryam Vargas via B4 Relay <devnull+hexlabsecurity.proton.me@kernel.org>, hexlabsecurity@proton.me, Dust Li <dust.li@linux.alibaba.com>, "David S. Miller" <davem@davemloft.net>, Paolo Abeni <pabeni@redhat.com>, Eric Dumazet <edumazet@kernel.org>, Sidraya Jayagond <sidraya@linux.ibm.com>, Hidayath Khan <hidayath@linux.ibm.com>, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Simon Horman <horms@kernel.org>, Tony Lu <tonylu@linux.alibaba.com>, Wen Gu <guwen@linux.alibaba.com>, linux-s390@vger.kernel.org, Wenjia Zhang <wenjia@linux.ibm.com>, Julian Ruess <julianr@linux.ibm.com> X-In-Reply-To: <20261114-b4-disp-4e6374c2-v2-0-3b7050bddef7@proton.me> 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