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=1796234876; b=XW9bAgma8tbLgVChy0gFuD3rxABQ7JacX4d9RzRVISkD3sfHKTHMAz4EIP9+kzU02E4N HuQEpxBO+giTHWTujY6iFocse5Gs6uCWvR9xu3elC4sjbP0bfceJzg9zZR98fgZcHHFyz enlKijYLjwU/tRtvbHZiYfEe6MNBV9yzFU99BiQ8cQD/b33gFz+9fP1JYT+BUNECW5g8X wdOEQJjKiu7kzULx/tFeqtOPMXq0cgbVmL9YiwEk6GBHvLGjtmdSlhuK07JAhab+MsS1f /LWFBX8rBwt7SMdQ24ZqdinL1cJiqUQBsatBu1usVX1pzpCFiqyuGE2u2CLQ8c9dFtQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796234876; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=zYNuwB/76YJEC4DG9ghFRMgYT1NwfDMnw9rjTdQWl1Y=; b=MbvIVKlrNQGiy9kYYGhsj0xtsLUvyz5ExWl5Gv/C+hP8d+UwufVWvP3LhHtMAEbo/SlG x/AFypZ69T3faL8U9jzaylNAb8dW1eQGSxKyA9ezm0vnlRYe6kh3pUe6ERqNkF5PEOsNz vQnQZNVebM+fPYkkEKQlNoXnLthYp0wcQBCJLTxDBHHCo5Q1pHF4njhLrf/VtjFSVnEBk IKHMSLzq54N6yQeL34qtgCC6Ym8TW8F5qHe9HWSzN5dW/bF1ET35X51BaGX45uEL3bmcQ 46w7tFaGmK2lOOgWDDpjgB/tnmijg5aHHsUY+sLdPAZaFytlNYRlmHljEXNpupguR6g== 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=nPxPjTSu; 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 3A915606A687 for ; Wed, 2 Dec 2026 18:07:56 +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=nPxPjTSu Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2A421F01832; Wed, 2 Dec 2026 18:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796234875; bh=zYNuwB/76YJEC4DG9ghFRMgYT1NwfDMnw9rjTdQWl1Y=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nPxPjTSujysuPBE3ToKoSEG/MVxzmWEjdCUSY5aEnPLXsHvhJHMsZM1S8tU2GIG3t 6T378qtCuNTtNAPb34CPq60mYKFtqBnMW+MhAO8uJsTgLNYGQHqs6/i+INSrqNP0uv OMBCP0qRo5cDOdpPDcf0thl4wsvW2dkM9h3AiSUsEvnlRinCnlMNWOjjYCidN3L7Rv ROnqdTjZ/lL4yhAoMh/7+NFm+r7SZDb1TEvvylW1/wM/F+TCpegLmdUjkwDwCW73h4 5eCTeFlt6kmJTxTKBLwTAeaOhEn5PL3wad0P8LkdTQMpTFb32QahDWQWCqqs34F5Xb 6CuN4O7r05FDw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 rdma-rc] RDMA/iwcm: Handle CLOSE before passive establishment Reply-To: sashiko-reviews@lists.linux.dev To: "Andrew Stellman" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261202175345.70627-1-bugs@stellman-greene.com> References: <20261202175345.70627-1-bugs@stellman-greene.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 18:07:55 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Andrew Stellman >=20 > An accepted siw MPA v2 connection enters RDMA mode before it receives > the peer's RTR frame. If that frame is malformed, siw reports CLOSE > while the passive IWCM ID is still in CONN_RECV, and cm_close_handler() > hits the BUG() for unexpected states: >=20 > [ 4.767386] ------------[ cut here ]------------ > [ 4.767396] kernel BUG at drivers/infiniband/core/iwcm.c:966! > [ 4.767406] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP > [ 4.770343] Modules linked in: > [ 4.770836] CPU: 0 UID: 0 PID: 60 Comm: kworker/u32:1 Not tainted 7.4.= 0-rc4-gf93eb7cfc4bf #14 PREEMPT(full) > [ 4.771994] Hardware name: linux,dummy-virt (DT) > [ 4.773423] Workqueue: iw_cm_wq cm_work_handler > [ 4.774044] pstate: 814000c5 (Nzcv daIF +PAN -UAO -TCO +DIT -SSBS BTYP= E=3D--) > [ ... ] > arrives after CLOSE or a destroy has already moved the ID to IDLE or > DESTROYING. >=20 > Fixes: 6c52fdc244b5 ("rdma/siw: connection management") > Signed-off-by: Andrew Stellman Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202175345.7062= 7-1-bugs@stellman-greene.com?part=3D1