From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=79.135.106.28 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796289481; b=1CgLQ0MKg93cz/x/T2xL9tiJJuD0KG2NPYXs61bQJnQZ0DpYum3oen0RYOGzeJqr3uo0 3/lU/H1OLJbx9dc8njeMf5LUdgjPEQ+Wi/G/9itDGyC+KbY0/fwu0XhPeOR7cD1CLGCgE JvbZvqHqttU9WJxfJzB4nHJGZKCSUUk176Ihy2XWQB0Wct8UqdrjYWZxeOlC3e89riOd4 3D0WPETDy6jUOcRsG1z9ZfUsZw5h+DIykJkQzX9PJ1H6Slgz+iIGoxYKzF0SFIv4ZFpHw rc4wibifK6MxKak5D9fHa1Sf2cBsRD9pTUpMQMw8sQ6D+atVmNrzhLXjLpc8vrGwKpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796289481; h=DMARC-Filter:DKIM-Signature:Date:To:From:Cc:Subject:Message-ID: In-Reply-To:References:Feedback-ID:X-Pm-Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=2I2+tpTfUGmj6b4q/H2+rnOdOBtt9UCBgxQZWC7uszs=; b=mRRVP6P/Hub1VAARuXB2v1AR1KYEuL+8BOKA5NqnuUBd3xBo4v74NcZ/FVoz96S2piyW SC/iQtUbl3jLmzexQcwMKJl+MimyjLcU8hLOYdanUSzoAaToabDGg7C0BfIrb0VCVBoFa PM50fbjsSV1rPdIIz0NnTStk+mZ4WCdT0tdBmhiSJnUGD5z6pxT76qaL7wbENAhCuS7Yi BPIdZsg2g9GJcNLXBsdCyFi2PyrosG92cGZMem6+ROHaMUnyS64bGGsvykYqT+WF2Ndpb ovk93gwZMGXBYrtPltGphoJSaArLeHFnMzc1KivllQyS9wTolAElnBzNesvSqxYmpZQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass header.d=proton.me header.i=@proton.me header.a=rsa-sha256 header.s=protonmail2 header.b=We45ML64; arc=none smtp.remote-ip=79.135.106.28 Received: from mail-10628.protonmail.ch (mail-10628.protonmail.ch [79.135.106.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FF9C606A68C for ; Thu, 3 Dec 2026 09:18:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6FF9C606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=proton.me header.i=@proton.me header.a=rsa-sha256 header.s=protonmail2 header.b=We45ML64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail2; t=1796289478; x=1796548678; bh=2I2+tpTfUGmj6b4q/H2+rnOdOBtt9UCBgxQZWC7uszs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=We45ML64WYvP+8WX6kYoiPnbXEfMp2iHQB3RW0822cTLiB34bm+UkmbGz4zoUbfK+ JAngSgw29ebxp1WSNgFdh7FQiGSKoBgqNP9vI0f6v0VeNjgfGWilC74sp0OqAP8pxE IzKSZibUu0nfUuBUYqN12JtAazBmz87C2Nu33s53CVeAJCzAclOJU8SU6XeQS2orNZ cxqIK6ekqeibROqHSISBVmW+aI+98Feq7JA5mlQ4Ybp75Tc1LaFQnLosNe0IRpOVEn J6XQv8/KMj898sPR0q/OxPx9ylWvjgRv6RlLzD6KHZd8BHghA2q4dByuMmIlmrDiUV WlC03ClTwOdgQ== Date: Thu, 03 Dec 2026 09:17:51 +0000 To: Sidraya Jayagond From: Bryam Vargas Cc: Mahanta Jambigi , "D . Wythe" , Eric Dumazet , "David S . Miller" , Paolo Abeni , Jakub Kicinski , Dust Li , Stefan Raspl , Simon Horman , Guangguan Wang , Wen Gu , linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lu , Ursula Braun , Hidayath Khan , Wenjia Zhang Subject: Re: [PATCH net v2 2/6] net/smc: do not credit stale CDC completions after a link switch Message-ID: <20261203091743.486413-1-hexlabsecurity@proton.me> In-Reply-To: <9814c137-6b38-40c0-839b-107877f4ef66@linux.ibm.com> References: <20261128-b4-disp-360e65c5-v2-0-d9c05004d430@proton.me> <20261128-b4-disp-360e65c5-v2-2-d9c05004d430@proton.me> <9814c137-6b38-40c0-839b-107877f4ef66@linux.ibm.com> Feedback-ID: 199661219:user:proton X-Pm-Message-ID: 3f1feea77a96adca79e3c2a2ef22bf837e6a249c X-Mailing-List: netdev@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: quoted-printable On 01/12/26 2:30 pm, Sidraya Jayagond wrote: > smc_sendmsg() still accepts sends in SMC_APPCLOSEWAIT1 (the peer did > shutdown(SHUT_WR) and still reads). RDMA writes queued on the failed > link complete as flushed. Your change correctly does not credit them, > but nothing sends them again either. [...] > I don't think this needs to hold up the series, but should the > closing states that can still have data in flight (at least > SMC_APPCLOSEWAIT1) go through smc_switch_cursor() as well? [...] I read it the same way: smc_switch_conns() only moves a connection in SMC_APPCLOSEWAIT1 to the new link. I have not run that case. I think SMC_APPCLOSEWAIT1 should. I have not checked which of the other closing states can still have writes in flight. v3 does not change this; it is under "Not fixed here" in the cover: https://lore.kernel.org/all/20261203-b4-disp-ba1ad55e-v3-0-6834ff90c5d0@pro= ton.me/ Thanks, Bryam