From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: [PATCH mptcp-net 0/3] misc fixes for sockopt selftests
Date: Tue, 2 Sep 2025 09:38:33 +0800 [thread overview]
Message-ID: <cover.1756776801.git.tanggeliang@kylinos.cn> (raw)
From: Geliang Tang <tanggeliang@kylinos.cn>
This patch series addresses several resource management issues in the MPTCP
sockopt selftests:
Patch 1 fixes a resource leak by ensuring the server's listening socket
is properly closed after processing clients, rather than leaving it open.
Patch 2 eliminates double-closing of pipe descriptors by removing redundant
close operations in functions where these descriptors are already managed
by the main function.
Patch 3 corrects an error reporting issue where the wrong variable was
being checked in debug output, ensuring accurate debugging information
when assertions fail.
These changes improve the robustness and correctness of the MPTCP selftests
by ensuring proper resource cleanup and accurate error reporting.
Geliang Tang (3):
selftests: mptcp: close server file descriptor
selftests: mptcp: avoid double closing pipe descriptor
selftests: mptcp: sockopt: fix variable check in error reporting
tools/testing/selftests/net/mptcp/mptcp_inq.c | 3 +--
tools/testing/selftests/net/mptcp/mptcp_sockopt.c | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
--
2.48.1
next reply other threads:[~2025-09-02 1:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 1:38 Geliang Tang [this message]
2025-09-02 1:38 ` [PATCH mptcp-net 1/3] selftests: mptcp: close server file descriptor Geliang Tang
2025-09-02 8:44 ` Matthieu Baerts
2025-09-02 1:38 ` [PATCH mptcp-net 2/3] selftests: mptcp: avoid double closing pipe descriptor Geliang Tang
2025-09-02 8:45 ` Matthieu Baerts
2025-09-02 1:38 ` [PATCH mptcp-net 3/3] selftests: mptcp: sockopt: fix variable check in error reporting Geliang Tang
2025-09-02 8:45 ` Matthieu Baerts
2025-09-02 3:39 ` [PATCH mptcp-net 0/3] misc fixes for sockopt selftests MPTCP CI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1756776801.git.tanggeliang@kylinos.cn \
--to=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.