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=1796268709; b=uC+fLC8c10md1xwlhzIQiwa6t4vwOjpjq9PoHB8TYGJ/Ik9kjt0hckRJ0xA+PLN42Zel d9+AZzRcm6N/SGdSFayzHdq8iZNzkazUoN3X5QDvyTjP51j6km6uf4jIeda2klZdg250y t/U/fsmVccl9lcHaAj1Fh4vp6ut/OK8MCCP7FRbqtNQcKNs0+b4qrFyJ1ngzb1LWVM5cX albCwNGVxvxXMA15ZheCARvi11wZ4ViTzojGYCqfcbEcLKZdT147QcvAfEiNnGkPcIVyu wpzMSft8Z9AUTpkHfyxhkZziXGlGwz9Su2oIiI27zG9faGByjKFHW4DPP6xyP01mfiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796268709; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4SpKshRW4Cc66mHjHgdC00o/tbK3vKxLhE7APLXoItw=; b=hYLJm6V2XJl5oKwXhLlGuvs+zm+RClCe3E9HXvjlHTbqrikEgUFjIK2/M1IJun23KUNX fQe4XYDxolcFbk7JYJTAc7DGBEcK2e8mostL8Bhwo1pRqk0qJ6qHbaTozYYPR57Wbbnyv zbJa0N9eiXcIfdRp/OFM3tWn+3R+Omcp2DU/OrbSIYHxZUxat+1irIMYG+O4mCxDaeurY SZcAAnK9vY1OSD7vxInyERNxoJ0b5DprJPxikDULa+xHEcFQv0p3EBWlfFQrzQ1iBjoXI QBBba4KdorV5t7ptmQDVrUOeMjGZ9uymQGLLMrLmhi+t//+Bz2O5wDmIrpICEspsB3g== 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=B42sS9iY; 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 B1A50606A32D for ; Thu, 3 Dec 2026 03:31:49 +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=B42sS9iY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FC8E1F000C1; Thu, 3 Dec 2026 03:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796268709; bh=4SpKshRW4Cc66mHjHgdC00o/tbK3vKxLhE7APLXoItw=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=B42sS9iYqzFv+PcdV4JNJ5TcXH13qALQs6fCZwARm4kmKT6YHfmwIEzCjXHtXbu0Y kqRDSE6e+A44SLyqFuWBrgG4tpCKLpeX/3w94i/nZYvaRKRpecp25ZzCuuAOcPIp1U V1Ee3MNEmNVpMX3dQ++iIFfMa46nMQaw4ZrWe4Hf3zZTuYFm0beL4N1Lu1DbTPE/KK 1nyXTUiV29PAZsEGA35Ko2xsaOXPTxhESkGYAkshToJA5/TGGRm1gIkE9hznzdR9PF YAsWwmiKCd/WBVwpbjXhwmnPorhA+hHAingB6R1Z09pDPyK98EhdaAtL6k7Ej6r8O3 ++WNdoXhfxQcg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] RDMA/irdma: do not acquire zero-reference listeners Reply-To: sashiko-reviews@lists.linux.dev To: "Jaeyeong Lee" , linux-rdma@vger.kernel.org In-Reply-To: <179626775864.1539648.17310868641558658819@jaeyeong.cc> References: <179626775864.1539648.17310868641558658819@jaeyeong.cc> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 03:31:49 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > irdma_dec_refcnt_listen() can drop a listener reference count to zero > before taking listen_list_lock to remove it from the lookup list. During > this window, irdma_find_listener() can find the listener and call > refcount_inc() on the zero count. It then returns a listener that the > teardown path is about to free. >=20 > Use refcount_inc_not_zero() while holding listen_list_lock. If the > listener has reached zero, skip it and let the teardown path remove it > from the list. >=20 > Fixes: 146b9756f14c ("RDMA/irdma: Add connection manager") > Signed-off-by: Jaeyeong Lee Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179626775864.153964= 8.17310868641558658819@jaeyeong.cc?part=3D1