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=1796151982; b=fjCLKSm10PFqLqCra2Phs5bgADL1CfVFfmaG0kNvHtgJuBIICmTkeTiTgD7I5cLmhtvY u4cnzHeEp6zEfkCSIzgE3Tu1bszYsvB5u0DPMS6ZM3fcXwFPwGsQS3iWXMQtiVxJlYQfz 6LrQGhBjdt+LKwOWJnfZGfVS70LlI0buXucT+Ey7p1o/7dZSwsVPe3AHxGagl4oMloOOx QStMwxT/xIRQ2D3ZecVG7Lk7ly//NAYYJJIMFrbpRG/UiqNg647+xuAQuxrkd5zhrzjyo jDVLkx4XzdZXUsOfZMiUauV3o/h0fiQpiL7gEL5jEtBsuyVeGp/KWVbMFKL8S0Ota8Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796151982; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=+JEMRvAPm/Uzg2QLyTFoL50Gyk5OZJEdaUlguUgfvqc=; b=GdlMkaGAwRyORy/adesbyR3o73FZfCFsw2yucWMUyIq6Shp7E3CyyRD9DtX6soe7w08U O6IKWNF6WLN2tYb/L3/ZDH+vRTlmEQRuw4Ztd7Y4hsjJvvSjft7NE29dvRdvNkpgS5MA0 dUyy99V1FyvaLfWb6UbSRtLLOKyk6S2sckiA8TTaUlc1EcMZkUKL6keTgs0VyNWmceq2d 1eygtw3T7JiqgSecxzLYHluo1WE8FIc0sRRZMG059Kd46mN4LmaJUI3XezVStC2whnsUV 3+JaCOJlnJv1QujM51s9lEDYC83GMVAi5WyQPjQnlpa3VkmJnSgHfGZ+KYW3JO2syTg== 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=a1s27xB2; 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 7EC37606A31A for ; Tue, 1 Dec 2026 19:06:22 +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=a1s27xB2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA241F00897; Tue, 1 Dec 2026 19:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796151982; bh=+JEMRvAPm/Uzg2QLyTFoL50Gyk5OZJEdaUlguUgfvqc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=a1s27xB2ynjvXu7TgWz51uyP8dFk1KS9zeuPlZETv5q1bkW45NkhqWt6XAbgmmWVq N3sJw9VgTDqdK9v5tCFLqA6fc30MFJAWBs6TwaYKU7Lxe8mIlZUwXPlAnaK+oCThGM XBgDXBF3ENxaouzVIWdxSSPRybMMpHaI38XPNT4eXfBnGfFSRj0k7kAKw4O8d/WAlT aLUAto2kIfxjhpGO82yHYCm0qx8DOTyEiXBzej7eieFnz1ZEYP/vvQHOxvgCNzVh6J tgkcnxHtahrUq9FU/Iyimpk1LuxIRyGB4eohycstCtY0kBXttlksAwBCF8TVSEF37R X28/rxuV6Rsow== Date: Tue, 1 Dec 2026 21:06:18 +0200 From: Leon Romanovsky To: Jaeyeong Lee Cc: linux-rdma@vger.kernel.org, Tatyana Nikolova , Jacob Moroni , Jason Gunthorpe Subject: Re: [PATCH] RDMA/irdma: remove listeners before dropping their last reference Message-ID: <20261201190618.GH31440@unreal> References: <179583481252.4059565.5258024221855710290@jaeyeong.cc> X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179583481252.4059565.5258024221855710290@jaeyeong.cc> On Sat, Nov 28, 2026 at 03:00:18AM +0000, Jaeyeong Lee wrote: > irdma_dec_refcnt_listen() can reduce a listener's reference count to > zero before taking listen_list_lock and removing it from the lookup > list. A concurrent lookup can find the zero-reference listener and > attempt to acquire it during that window. > > Serialize the final decrement and list removal with listener lookup. > Perform the remaining teardown after releasing the list lock. > > Fixes: 146b9756f14c ("RDMA/irdma: Add connection manager") > > Signed-off-by: Jaeyeong Lee > --- > This patch has not been tested on physical hardware. The reproducer validates the software lifetime ordering only. I will have to drop this patch. It has no Acked-by from the maintainers, does not follow the coding rules, and we cannot assume that an AI's hallucination about how the hardware works is correct. Thanks