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=1795953839; b=jxnJVPb84CVkC4Ywur/7V8F+KNHwms8bXjU6fU7a10iqJt1QqmcEjnvwGkQhw93dZWDL KkmrrcapWXd6qsLJhmgRL44uxb7nmQW/dnTxbtBi0HzteNKZp3rOWNUyWwI8pFh3PmpZ3 yCfdHoJ5H+Xkj+Zac4rOts/0lsYvUAwCT4hJmBSno5cTm9HA1wUE/l/eoPprH1enmKgKS i6Mi9EKO6s3+LZOQfe1/uBYo0jOlPfQhyg3YlQkohr6wRR+UTPSgGXRiRuj3wO8UeheOc iaQm5SJJBr3cRO1ejlh1ZCFiVyVdMwgG/25xJ+Ym/arHYZFQj84LVM1q8sIkNvTpzhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795953839; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=R1YfM+jsdmRvrWK1qr6Kw1TVSBIJ0I3498FWS7pXFl4=; b=16NRvMrSjGnvSGfQUfAu/wifIyc+TzE7urAs6c6iW7wNVtKMvvA1qBVN+Tw6KgxdQ4jx IZOMiKRA4ZqOe4azoDYe6azYYqyqwvE33Fkpi85Z9dWRoVdJCgBNizlDAwOgn/Wcy4CSA Bvs3hiBmKOwdb5650ScOy4enjaCJrTU6SEwgP6yaQG/Yav9OoKcxGUQSDHnUizeBNu84w EL9KkREyIrtuyQSLxtFSKEh9Vel8lW68TWHQg6/BrxuWW/de43GowcHzOa8xVshyOrvSh E7bAh2dPWOo4sBw1hlzyew4JaLAand7DoknwMtWv/LViagfTF7RyM+i7rDH7efQFbuw== 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=dPLBuEIb; 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 21FF6606A325 for ; Sun, 29 Nov 2026 12:03:58 +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=dPLBuEIb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36A911F00898; Sun, 29 Nov 2026 12:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795953838; bh=R1YfM+jsdmRvrWK1qr6Kw1TVSBIJ0I3498FWS7pXFl4=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=dPLBuEIb8ZbOGW9zMqxCJmp1KQrYcySjaO9hXueHqHTbrzPf4vmhhwhQ5BXLTMj34 ZiqBaalJAKO6oxLWR7OCX0kAtbWaE7LapgDRwDPYJYbo9Xd8zvcKVodJ3lCEET62JL rHUQHeJsTkYbXga9u/bezWXC8e8OBp/rm34WJLHQdqiLRRCio0RCBlTTNu9byPKP11 NFlmfTgD8b8tNGoSQDO9IFOlQyRROaxjxHAHgYxm7DfAHix3o+tj1eEBB5E85TQqrU 7El72QYqEAQVAwBNUMpPOUqNkUrz8Zd6OMw6s33ghDsGEjuvPvWTe3XgfCsQD9E/vD ONnKhRU8NDJXg== From: Leon Romanovsky To: tatyana.e.nikolova@intel.com, jgg@ziepe.ca, Jacob Moroni Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261126185344.2784303-1-jmoroni@google.com> References: <20261126185344.2784303-1-jmoroni@google.com> Subject: Re: [PATCH rdma-next 1/2] RDMA/irdma: Wait for all refs to drop when destroying RoCE QPs Message-Id: <179595383443.1465094.6997669671995176911.b4-ty@kernel.org> Date: Sun, 29 Nov 2026 14:03:54 +0200 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.15-dev-3ae27 On Thu, 26 Nov 2026 18:53:43 +0000, Jacob Moroni wrote: > Commit 6f52370970ac ("RDMA/irdma: Fix deadlock during netdev reset > with active connections") made QP destruction skip the refcount wait > if the device is being reset in order to fix a deadlock that could > occur for iWARP mode QPs due to refs still being held by the CM. > > RoCE mode QPs are not subject to that issue and should still wait > for all of the references to be dropped. Otherwise, the QP could > be freed while the AEQ handler or disconnect work still holds a > reference, leading to a UAF. In RoCE mode, any remaining references > held by the AEQ handler/disconnect work are always transient so > the wait is bounded. > > [...] Applied, thanks! [1/2] RDMA/irdma: Wait for all refs to drop when destroying RoCE QPs https://git.kernel.org/rdma/rdma/c/f33738f9319fd0 [2/2] RDMA/irdma: Scrub software flush completions on QP destroy https://git.kernel.org/rdma/rdma/c/78d9dd829f1250 Best regards, -- Leon Romanovsky