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=1796532975; b=yD6jX5U/TdTqeAx3WaLZuK4sjJ4q6d6pGXUyXtedTwPfcrnsKYxFOBHrQRw6Puz5Vd7v kbmwPeL85+NWfC76rkLqVfk6nhCgLH8xddkQzfTiGX0dFxDIdQK4lwCOrpVCv2s0sJFMt xYE3Tu0/DXA54fFvRgGNQIGr2L2CvXKDivNfpMceVH2Izh5V4Xiy6s/GdV1doa5MsZeZ5 IZEjSl5oHdt+tXeaMAD9TshQic+i6TJjXcNpibt9NJLw3erTbXTQHiFnHFIoKr/xGU/z/ JxtcX9ghYYV6HYRPYd1f+yjO9heawMBfcP4ReiIZKNRAzWc/ZnQZaal5BJ1Qz1Vhxig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796532975; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=5/Hf79TalHRIyoYRCb93WgSeZlMhhMZMb3tHyjCou/o=; b=Xxl7hORz+Y6RWbDWpS5MZvWTDIpM3aGu8Lb5HuKEFe6cYnePxnnMLK/uvCbHNgAqF7t3 zVTAOl+Hc/2nu46e+4G5E/M7QL9Ri6kWLUiAjmMp8cUNKd8/5HAImQhCjTHdudq6MT82O iFThAMdXHCnuJHPRxeqQn5hMh3QkVvcUyfbS08EdYPZwxaHbLDYHCpgBKvJbhBJSMrBxQ bpluHIrSyjueExz1pIWOts5aSJUiHwnhp/wvPTFH6LQ6XwnoqSuqSNoGtQkrr+F1vFR5E QTwn67YMQIh/2GqSyXiWza0Yw2pfPmi+6ijNuzsdDFUx3OUah6YAO+yH+l5WzlLXxJw== 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=TCKcIwb6; 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 DA373606A31F for ; Sun, 6 Dec 2026 04:56:15 +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=TCKcIwb6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 660BF1F0092B; Sun, 6 Dec 2026 04:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796532975; bh=5/Hf79TalHRIyoYRCb93WgSeZlMhhMZMb3tHyjCou/o=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=TCKcIwb6bU3S5S12PeRkEgHae01jAB0jOoYBT1hF2tw85ZaERaL34ezAfFDyEr5AT NMRrF5F5+8G40sxQSV7I1IWYUDKo6lkED/+FvaUGgGByhzE5wENpYn9Zt+vsB9B9JI xRWjnrTvbq9nu4oM1LHcJ9F0Rx0mL4AXkjkfFCWmG2YIjlpJjERqkZbGbh9A2bOXRH lINNhqy5G3t+ZAIVsBobQbp/gwhQ8DN9GDPR/kJgNZxIGQ2yAfU6dPtyeecp31XulV gHHrra967shQZz7Z9waqAV91jh3CVkgyOXPfcn0FYKrLXBBdHvMP4Hrz2VsEPInnyV qgz7vC4N0cyHg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH mptcp-next v10] mptcp: count the DATA_FIN in mptcp_inq_hint Reply-To: sashiko-reviews@lists.linux.dev To: "Geliang Tang" , mptcp@lists.linux.dev In-Reply-To: <41d066cd5e7a602c2e909acd83c43672f213795e.1796531907.git.tanggeliang@kylinos.cn> References: <41d066cd5e7a602c2e909acd83c43672f213795e.1796531907.git.tanggeliang@kylinos.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 04:56:14 +0000 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] mptcp: mptcp_splice_read() misses mptcp_pending_eof() check -- commit 682dbfa2512e69f321d0fd1137d83a62ffdf44a7 Author: Geliang Tang mptcp: count the DATA_FIN in mptcp_inq_hint This commit counts a pending DATA_FIN in mptcp_inq_hint() using a new mptcp_pending_eof() helper and adds mptcp_pending_eof() as an exit condition in mptcp_recvmsg(). > diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c > index 14fca55d46199..7527d17572606 100644 > --- a/net/mptcp/protocol.c > +++ b/net/mptcp/protocol.c [ ... ] > @@ -2544,6 +2549,10 @@ static int mptcp_recvmsg(struct sock *sk, struct m= sghdr *msg, size_t len, > if (!list_empty(&msk->backlog_list) && mptcp_move_skbs(sk)) > continue; > =20 > + /* A pending EOF acts like a FIN at the queue tail. */ > + if (mptcp_pending_eof(sk, NULL)) > + break; > + > /* only the MPTCP socket status is relevant here. The exit > * conditions mirror closely tcp_recvmsg() > */ [Severity: Low] Does mptcp_splice_read() need the same mptcp_pending_eof() check? When data and an in-sequence DATA_FIN arrive while the socket is not owned by userspace, mptcp_check_data_fin() is deferred to mptcp_worker() with backlog_list empty. After recvmsg() drains the queue and reports TCP_CM_INQ =3D 1, SOCK_DONE and RCV_SHUTDOWN remain unset. If userspace then calls non-blocking splice() before mptcp_worker() runs, mptcp_recv_skb() skips mptcp_move_skbs() because backlog_list is empty, and mptcp_splice_read() only checks SOCK_DONE and RCV_SHUTDOWN, so it returns -EAGAIN instead of 0. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/41d066cd5e7a602c2e9= 09acd83c43672f213795e.1796531907.git.tanggeliang@kylinos.cn?part=3D1