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=1796508255; b=JAxPvvoNL1m+MsK5kjokLkD4a+APoAW1sd2VC49uhA1Ogg8HoGZZHa3d2e208DmFS1JL 3SlFgkMvH0fNy0AZ+YTqZYGdYnU5wraespB+2eiKpbivkDBEuwatO2cIRFN+P0lsJea76 S/1jhhbegwLSmHRo2MMMYfvcHeGNiViOyh/pnklfb9t6nXKqcD1/abxyUZJEhXm3/6cht +NmuPsyk340zlXk0a8Qz+tRswh5GUa7l0gaXlydnM+xlz4WNc85gaBRDJVeXVzqo6Vwn3 SWhXKTUlMjiBg9p5OOhwyvv3zqcOM0LgrTBHGkdt5NP2hWcRrEuT/JxuqktwPFvGOLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796508255; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=yY5D6KrzlfW/OYY2KyoO91ma+29T6eyspkwZcdqixGw=; b=yKkjPd4alOYG26SoQ94mECTg+djoyFY4YHSY70rn0ArGRJzyKihbJwpBKvBnQDWr+bxq mcLbyGaZQdRrW5a2opVle8+emEjA6RetWWZKBpx37Z3L+p2ZbbxTP0kqAWCKFoKDL0RJf R3u1Ib/aqkPJ1wWDS0AFyt8pf5ef2PQ+fPZBFHfcs8tO64POKK1i1+Vr1GdReVilZRTIt ltC11rehqAYUE4sRQJ2J3UH3I5ycJ3XubpM9Npw2bqDYcN6Uo5TkMn3+i/ddoTpTFc9Y7 ir6pr+N4tUHEn8sgrIDxSa3I9TmbfP+6zU4LZuEKx7L4snlG4gOCVvParcizzmJ20YQ== 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=npSCHJ8m; 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 668ED606A334; Sat, 5 Dec 2026 22:04: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=npSCHJ8m Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B6CB1F00A07; Sat, 5 Dec 2026 22:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796508255; bh=yY5D6KrzlfW/OYY2KyoO91ma+29T6eyspkwZcdqixGw=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=npSCHJ8mM5lzpgQV3iBmuKrA/reKyCtG/S5XU8KLt1pNjSQ0fKgAZc8MhC41j04w2 L0y4/Fq/nP5Q74/l6i0h8WKTooXTx/0KOB5cqpAxNmT69uVFfW+HnT9J++gILUGFLn nz+SPPUWQAj4T6QKnyj6BSnXfebQrBLz0ougGOkG8Rpz/a7XgbABahz9StxVewrDhu I2nr0tqszKwVH9+eCvl6fU/duh1S+Bz0YFPrUPLtNxxwOOkIMwelUCCNUrkOvlgqm/ IBy3dwQ8fUs1MbeBXX/RyaZARzmgtwAc4df+4G+SATJ0g1FzxJtOGsQ2loYQC+6emJ s4N6uIZ1G2Dqg== Subject: Re: [PATCH net-next 08/10] selftests: mptcp: sockopt: drop unreachable FIN accounting From: netdev-bot+sashiko@kernel.org To: matttbe@kernel.org Cc: martineau@kernel.org, geliang@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, liyonglong@chinatelecom.cn, shuah@kernel.org, fw@strlen.de, netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kselftest@vger.kernel.org Date: Sat, 05 Dec 2026 22:04:13 +0000 Message-ID: <179650825388.3148.5503592824533064994@kernel.org> In-Reply-To: <20261204-net-next-mptcp-misc-feat-7-5-v1-8-1449de51adae@kernel.org> References: <20261204-net-next-mptcp-misc-feat-7-5-v1-8-1449de51adae@kernel.org> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message presents a change with no effect on the test as a fix for a problem someone could hit. - [Low] The new xerror("unexpected EOF, total %lu, len %lu\n", total, len) in connect_one_server() and the rewritten xerror("total %lu, len… -- selftests: mptcp: sockopt: drop unreachable FIN accounting This commit removes the eof flag and the unreachable DATA_FIN "total += 1" adjustment in connect_one_server(). When read() returns 0 inside the receive loop, the code now calls xerror() directly. The post-loop length mismatch message is simplified to match. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/637 > This issue has been reported by Sashiko and not seen in CI environments. > Yet, it could be visible, especially when the test is launched manually. > > Fixes: ce9979129a0b ("selftests: mptcp: add mptcp getsockopt test cases") [Severity: Low] Is this paragraph accurate for this patch? Before the change, read() returning 0 set eof and broke out of the loop while total was still below len, and len is at least 128. That means the check right after the loop always fired: if (total != len) xerror("total %lu, len %lu eof %d\n", total, len, eof); xerror() is __noreturn, so the process already exited with status 1 on an early EOF. After the patch, xerror() is called directly inside the loop and the result is the same. The commit message itself says the removed "total += 1" could never run. So there doesn't seem to be any symptom that "could be visible" when the test is launched manually. The sentence looks like it was carried over from the previous patch in the series, "selftests: mptcp: sockopt: pass total bytes to do_getsockopts". That patch fixed an assertion failure that could really be hit. Could this be described as a cleanup with no functional change instead? The "could be visible" sentence, and possibly the Fixes tag, could then be dropped so stable tooling doesn't treat this as a flake fix. > diff --git a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c b/tools/testing/selftests/net/mptcp/mptcp_sockopt.c > index 7b4ccbe10ae18..10bef56acc6c9 100644 > --- a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c > +++ b/tools/testing/selftests/net/mptcp/mptcp_sockopt.c [ ... ] > @@ -610,16 +609,15 @@ static void connect_one_server(int fd, int pipefd) > ret = read(fd, buf2 + total, sizeof(buf2) - total); > if (ret < 0) > die_perror("read"); > - if (ret == 0) { > - eof = true; > - break; > - } > + if (ret == 0) > + xerror("unexpected EOF, total %lu, len %lu\n", > + total, len); > > total += ret; > } while (total < len); > > if (total != len) > - xerror("total %lu, len %lu eof %d\n", total, len, eof); > + xerror("total %lu, len %lu\n", total, len); [Severity: Low] This isn't a bug, but total and len are size_t in connect_one_server(). Should these two messages use %zu, like the existing xerror() call in do_getsockopt_tcp_info()? xerror("tcpi_bytes_sent %" PRIu64 ", want %zu. tcpi_bytes_received %" PRIu64 ", want %zu", xerror() has no printf format attribute, so the compiler won't flag the mismatch. Also, xerror() already appends its own newline: vfprintf(stderr, fmt, ap); ... fputc('\n', stderr); so the trailing "\n" in both formats prints an extra blank line. Could the "\n" be dropped from the new message and the rewritten one? [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204-net-next-mptcp-misc-feat-7-5-v1-0-1449de51adae%40kernel.org