prepare interfaces for kTLS and sockmap support
Subsystems (3)
Geliang Tang
reviewerv5 cover prepare interfaces for kTLS and sockmap support
From: Geliang Tang <[email protected]>
v5:
- patch 2: new patch - rewrite mptcp_inq_hint() to use mptcp_data_avail() instead of ack_seq - map_seq, completely avoiding TFO overflow issues.
- patch 3: new patch - add TFO SIOCINQ overflow detection in mptcp_connect test to catch INT_MAX returns on TFO connections.
- patch 4: mptcp_inq() now returns INT_MAX instead of 0 when avail >= INT_MAX. Removed mptcp_inq_hint() changes (moved to patch 2).
- patch 6: replace mptcp_rtx_head() check with MPTCP_WORK_RTX and MPTCP_RETRANSMIT flag checks in mptcp_rate_check_app_limited() to properly detect pending retransmissions without data race issues.
v4:
- patch 2: fix mptcp_inq_hint() to return 0 instead of INT_MAX on
passive TFO overflow (ack_seq - map_seq >= INT_MAX).
- patch 4: add mptcp_rtx_head(sk) to the early-return check in mptcp_rate_check_app_limited() so pending retransmissions also
prevent false app-limited marking.
- patch 5: update comment message.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v3:
- patch 2: drop DATA_FIN subtraction in mptcp_inq(), remove the
intermediate 'answ' variable and return (unsigned int)avail
directly. Update commit message accordingly.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v2:
- drop the patch "prevent dummy DATA_FIN on RST in fallback mode".
- keep mptcp_inq_hint in mptcp_ioctl unchanged.
- use mptcp_data_avail in mptcp_inq.
- add msk_owned_by_me check in mptcp_sendmsg_locked.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v1:
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
This series was previously posted as part of "Reduce the differences between TCP and MPTCP for TLS usage" v15. It creates the mptcp_inq() and mptcp_sendmsg_locked() interfaces that are required for the upcoming MPTCP kTLS and MPTCP sockmap implementations.
The series has been rebased and no longer depends on Paolo's CB layout refactoring patches (mptcp: drop the mptcp_ooo_try_coalesce() helper,
mptcp: drop the cant_coalesce CB field, mptcp: remove CB offset field,
mptcp: sync mptcp skb cb layout with tcp one, mptcp: defer read_sock cleanup to mptcp_worker). Those patches are more complex and will be sent in a separate series.
Patch overview:
1. mptcp: update mptcp_check_readable
- Align with TCP's sock_is_readable for better TLS compatibility
2. mptcp: prevent dummy DATA_FIN on RST in fallback mode
- Fix semantic issue where RST on fallback connections would create dummy DATA_FIN, causing unnecessary state transitions
- Add sk_err check to subflow_is_done() to distinguish abortive closes (RST) from clean closes (FIN)
3. mptcp: implement peek_len for proto_ops
- Add mptcp_inq() to report readable bytes at MPTCP level
- Wire into .peek_len proto_ops for both IPv4 and IPv6
- Handle 32-bit torn reads by returning 0 instead of INT_MAX
- Prepare for TLS strparser integration
4. mptcp: add sendmsg_locked to proto_ops
- Split mptcp_sendmsg() into locked/unlocked variants
- Expose .sendmsg_locked in proto_ops for TLS send path
5. mptcp: track app-limited state in mptcp_sendmsg
- Add mptcp_rate_check_app_limited() to mark subflows as app-limited
- Bail out when MPTCP has unsent data (write_seq != snd_nxt or mptcp_send_head() != NULL) to avoid false app-limited marking
- Enable accurate delivery rate estimation for BBR
6. selftests: mptcp: sockopt: check app_limited
- Add regression test for app-limited accounting
- Verify tcpi_delivery_rate_app_limited == 1 after small transfers
Gang Yan (1):
mptcp: update mptcp_check_readable
Geliang Tang (6):
mptcp: use mptcp_data_avail in mptcp_inq_hint
selftests: mptcp: connect: check TFO SIOCINQ overflow
mptcp: implement peek_len for proto_ops
mptcp: add sendmsg_locked to proto_ops
mptcp: track app-limited state in mptcp_sendmsg
selftests: mptcp: sockopt: check app_limited
net/mptcp/protocol.c | 92 +++++++++++++++---- .../selftests/net/mptcp/mptcp_connect.c | 15 +++ .../selftests/net/mptcp/mptcp_sockopt.c | 5 + 3 files changed, 93 insertions(+), 19 deletions(-)
Signature · 1 line
2.55.0
Geliang Tang
reviewerPATCH v5 1/7 mptcp: update mptcp_check_readable
From: Gang Yan <[email protected]>
This patch makes mptcp_check_readable() aligned with TCP, and renames it to mptcp_stream_is_readable(). It will be used in the case of KTLS, because 'prot' will be modified, tls_sw_sock_is_readable() is expected to be called from prot->sock_is_readable().
--- net/mptcp/protocol.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
net/mptcp/protocol.c +6 -3
@@ -3476,9 +3476,11 @@ void __mptcp_unaccepted_force_close(struct sock *sk)__mptcp_destroy_sock (sk); } -static __poll_t mptcp_check_readable (struct sock *sk) +static bool mptcp_stream_is_readable (struct sock *sk) { -return mptcp_epollin_ready (sk) ?EPOLLIN |EPOLLRDNORM :0 ; +if (mptcp_epollin_ready (sk)) +return true; +return sk_is_readable (sk); }static void mptcp_check_listen_stop (struct sock *sk)
@@ -4580,7 +4582,8 @@ static __poll_t mptcp_poll(struct file *file, struct socket *sock, mask |=EPOLLIN |EPOLLRDNORM |EPOLLRDHUP ;if (state !=TCP_SYN_SENT && state !=TCP_SYN_RECV ) { - mask |=mptcp_check_readable (sk); +if (mptcp_stream_is_readable (sk)) + mask |=EPOLLIN |EPOLLRDNORM ;if (shutdown &SEND_SHUTDOWN ) mask |=EPOLLOUT |EPOLLWRNORM ;else
Signature · 1 line
2.55.0
Geliang Tang
reviewerPATCH v5 2/7 mptcp: use mptcp_data_avail in mptcp_inq_hint
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
Update mptcp_inq_hint() to compute available bytes using mptcp_data_avail() (bytes_received - bytes_consumed) instead of ack_seq minus the head skb's map_seq.
This change aligns mptcp_inq_hint() with mptcp_inq() and provides more consistent behavior across different connection types, including passive TFO connections where the TFO skb has map_seq set to -skb->len (data before IASN). Using mptcp_data_avail() avoids potential overflow issues when ack_seq is set to iasn.
The EOF hint behavior (returning 1 when socket is closed with no data) is preserved by checking if avail is zero and the socket state indicates closure or shutdown.
--- net/mptcp/protocol.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-)
net/mptcp/protocol.c +6 -12
@@ -2402,22 +2402,16 @@ static bool mptcp_move_skbs(struct sock *sk)static unsigned int mptcp_inq_hint (const struct sock *sk) {const struct mptcp_sock *msk =mptcp_sk (sk); -const struct sk_buff *skb; +u64 hint_val =mptcp_data_avail (msk); - skb =skb_peek (&sk->sk_receive_queue); -if (skb) { -u64 hint_val =READ_ONCE (msk->ack_seq) -MPTCP_SKB_CB (skb)->map_seq; +if (hint_val >=INT_MAX ) +return INT_MAX ; -if (hint_val >=INT_MAX ) -return INT_MAX ; - -return (unsigned int )hint_val; - } - -if (sk->sk_state ==TCP_CLOSE || (sk->sk_shutdown &RCV_SHUTDOWN )) +if (!hint_val && + (sk->sk_state ==TCP_CLOSE || (sk->sk_shutdown &RCV_SHUTDOWN )))return 1 ; -return 0 ; +return (unsigned int )hint_val; } static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
Signature · 1 line
2.55.0
Geliang Tang
reviewerRe: [PATCH mptcp-next v5 2/7] mptcp: use mptcp_data_avail in mptcp_inq_hint
Hi Matt,
Quoted 12 lines · Geliang Tang
From: Geliang Tang <[email protected]>
Update
mptcp_inq_hint()to compute available bytes usingmptcp_data_avail()(bytes_received-bytes_consumed) instead ofack_seqminus the head skb'smap_seq.This change aligns
mptcp_inq_hint()withmptcp_inq()and provides more consistent behavior across different connection types, including passive TFO connections where the TFO skb hasmap_seqset to -skb->len (data before IASN). Usingmptcp_data_avail()avoids potential overflow issues whenack_seqis set to iasn.
Quoted 3 lines
The EOF hint behavior (returning 1 when socket is closed with no data) is preserved by checking if avail is zero and the socket state indicates closure or shutdown.
Sorry, I forgot to update the commit log:
'''
Update mptcp_inq_hint() to compute available bytes using mptcp_data_avail() (bytes_received - bytes_consumed) instead of ack_seq minus the head skb's map_seq.
On passive TFO connections, the TFO skb has map_seq set to -skb->len (representing data before IASN). When ack_seq is later set to iasn (a large positive value), the subtraction ack_seq - map_seq overflows, causing SIOCINQ and TCP_CM_INQ to return INT_MAX instead of the actual byte count. Using mptcp_data_avail() avoids this overflow by tracking bytes directly without depending on map_seq.
The EOF hint behavior (returning 1 when socket is closed with no data) is preserved by checking if hint_val is zero and the socket state indicates closure or shutdown.
'''
Thanks,
-Geliang
Quoted 40 lines
Signed-off-by Geliang Tang <[email protected]>---
net/mptcp/protocol.c | 18 ++++++------------1 file changed, 6 insertions(+), 12 deletions(-)net/mptcp/protocol.c +1
-1@@ -2402,22 +2402,16 @@ static bool mptcp_move_skbs(struct sock *sk) static unsigned int mptcp_inq_hint(const struct sock *sk) { const struct mptcp_sock *msk = mptcp_sk(sk); -const struct sk_buff *skb; +u64 hint_val =mptcp_data_avail (msk);net/mptcp/protocol.c +0
-3- skb =skb_peek (&sk->sk_receive_queue); -if (skb) { - u64 hint_val = READ_ONCE(msk->ack_seq) - MPTCP_SKB_CB(skb)-Quoted 1 line
map_seq;net/mptcp/protocol.c +2
-0+if (hint_val >=INT_MAX ) +return INT_MAX ;net/mptcp/protocol.c +2
-7-if (hint_val >=INT_MAX ) -return INT_MAX ; - -return (unsigned int )hint_val; - } - -if (sk->sk_state ==TCP_CLOSE || (sk->sk_shutdown &RCV_SHUTDOWN )) +if (!hint_val && + (sk->sk_state == TCP_CLOSE || (sk->sk_shutdown & RCV_SHUTDOWN)))return 1;
net/mptcp/protocol.c +1
-1-return 0 ; +return (unsigned int )hint_val;}
static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg,size_tlen,
[email protected]
AI reviewRe: [PATCH mptcp-next v5 2/7] mptcp: use mptcp_data_avail in mptcp_inq_hint
In reply to Geliang TangThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider.
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each issue of Medium severity or higher and explain why the AI is wrong. If any of them are legitimate and you plan to respin, please let patchwork know by including "pw-bot: cr" as a separate line at the end of your reply (one such reply per series is enough).
- [Medium] This patch fixes a real, user-visible regression, but the commit message describes it as an alignment/consistency change that…
--
mptcp: use mptcp_data_avail in mptcp_inq_hint
This commit changes mptcp_inq_hint() to compute the available bytes with mptcp_data_avail() (bytes_received - bytes_consumed). Previously it subtracted the head skb's map_seq from msk->ack_seq. The hint value of 1 for closed or shut-down sockets with no pending data is kept.
Quoted 5 lines
This change aligns
mptcp_inq_hint()withmptcp_inq()and provides more consistent behavior across different connection types, including passive TFO connections where the TFO skb hasmap_seqset to -skb->len (data before IASN). Usingmptcp_data_avail()avoids potential overflow issues whenack_seqis set to iasn.
[Severity: Medium]
The code change looks correct. Is "potential overflow issues" the right description, though? This seems to fix a concrete regression on passive TFO sockets.
mptcp_fastopen_subflow_synack_set_params() queues the SYN data skb with:
MPTCP_SKB_CB(skb)->map_seq = -skb->len;
When the third ACK arrives, subflow_set_remote_key() does:
WRITE_ONCE(msk->ack_seq, subflow->iasn);
Before commit f03afb3aeb9d ("mptcp: drop __mptcp_fastopen_gen_msk_ackseq()"), __mptcp_fastopen_gen_msk_ackseq() added msk->ack_seq to the queued skb's map_seq and end_seq at that point. Since that commit, the old mptcp_inq_hint() computes:
READ_ONCE(msk->ack_seq) - MPTCP_SKB_CB(skb)->map_seq
That value is iasn + len, which is almost always >= INT_MAX, so the function returns INT_MAX.
As a result, SIOCINQ/FIONREAD through mptcp_ioctl() and the TCP_CM_INQ cmsg in mptcp_recvmsg() report INT_MAX, and mptcp_rcv_space_adjust() subtracts INT_MAX from copied. This lasts until the TFO skb is fully consumed, because partial reads only advance map_seq by the copied amount.
The selftest later in this series ("selftests: mptcp: connect: check TFO SIOCINQ overflow") checks for exactly this case, where mptcp_inq_hint() returns INT_MAX for TFO connections.
Should this patch carry the following tag?
Could the commit message also describe the actual symptom, so the patch can go to net and be picked up by stable kernels that contain f03afb3aeb9d?
Signature · 1 line
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1793676064.git.tanggeliang%40kylinos.cn
Geliang Tang
reviewerPATCH v5 3/7 selftests: mptcp: connect: check TFO SIOCINQ overflow
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
Add a check in mptcp_connect's server mode to detect TFO SIOCINQ overflow. When a TFO connection is accepted, wait for data to arrive using poll(), then check if SIOCINQ returns INT_MAX. This detects the overflow bug where mptcp_inq_hint() incorrectly returns INT_MAX for TFO connections due to map_seq sign extension issues.
The check is performed immediately after accept() and before opening cfg_input, ensuring we catch the overflow in the initial TFO state.
--- tools/testing/selftests/net/mptcp/mptcp_connect.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
tools/testing/selftests/net/mptcp/mptcp_connect.c +15 -0
@@ -1207,6 +1207,21 @@ int main_loop_s(int listensock)check_sockaddr (pf, &ss, salen);check_getpeername (remotesock, &ss, salen); +if (cfg_sockopt_types.mptfo) { +int avail; + +/* Wait for TFO data to arrive */ + polls.fd = remotesock; + polls.events =POLLIN ; +poll (&polls,1 ,1000 ); +if (ioctl (remotesock,SIOCINQ , &avail) ==0 && + avail ==INT_MAX ) { +fprintf (stderr,"TFO SIOCINQ overflow\n" ); +close (remotesock); +return 1 ; + } + } +if (cfg_input) { fd =open (cfg_input,O_RDONLY );if (fd <0 )
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH mptcp-next v5 3/7] selftests: mptcp: connect: check TFO SIOCINQ overflow
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…
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 new check in main_loop_s() (tools/testing/selftests/net/mptcp/mptcp_connect.c, lines 1210-1223)…
- [Low] The commit message of "selftests: mptcp: connect: check TFO SIOCINQ overflow" gets the bug and the check placement wrong, and does…
--
selftests: mptcp: connect: check TFO SIOCINQ overflow
This adds a check to main_loop_s() in mptcp_connect.c that runs when the MPTFO sockopt option is set. After accept(), the server polls the accepted socket for up to one second. It then fails if SIOCINQ reports INT_MAX, which is how the mptcp_inq_hint() TFO overflow shows up.
Quoted 4 lines
When a TFO connection is accepted, wait for data to arrive using
poll(), then check if SIOCINQ returnsINT_MAX. This detects the overflow bug wheremptcp_inq_hint()incorrectly returnsINT_MAXfor TFO connections due tomap_seqsign extension issues.
[Severity: Low]
Is "map_seq sign extension issues" an accurate description of the bug?
mptcp_fastopen_subflow_synack_set_params() in net/mptcp/fastopen.c does this:
MPTCP_SKB_CB(skb)->map_seq = -skb->len;
skb->len is an unsigned int. The negation gives 2^32 - len, and that value is zero-extended into the u64 map_seq.
The old mptcp_inq_hint() computed:
READ_ONCE(msk->ack_seq) - MPTCP_SKB_CB(skb)->map_seq
This synthetic map_seq is not in the MPTCP DSN space, so the result means nothing for the TFO skb. Even a properly sign-extended -len would give ack_seq + len. That is still huge once ack_seq holds the 64-bit IDSN-derived value.
Quoted 2 lines
The check is performed immediately after
accept()and before openingcfg_input, ensuring we catch the overflow in the initial TFO state.
The code polls the accepted socket for up to 1000 ms before it calls ioctl(SIOCINQ). Is "immediately after accept()" accurate?
The commit message also describes the bug in the present tense. The fix appears to be the preceding commit "mptcp: use mptcp_data_avail in mptcp_inq_hint", and this test only passes once that commit is applied.
Could the commit message reference that commit, so readers and stable backporters can tell that the two belong together?
Quoted 7 lines
tools/testing/selftests/net/mptcp/mptcp_connect.c +0
-0@@ -1207,6 +1207,21 @@ int main_loop_s(int listensock)check_sockaddr (pf, &ss, salen);check_getpeername (remotesock, &ss, salen);
tools/testing/selftests/net/mptcp/mptcp_connect.c int main_loop_s(int listensock) · line 1218
Quoted 10 lines
tools/testing/selftests/net/mptcp/mptcp_connect.c +9
-0+if (cfg_sockopt_types.mptfo) { +int avail; + +/* Wait for TFO data to arrive */ + polls.fd = remotesock; + polls.events =POLLIN ; +poll (&polls,1 ,1000 ); +if (ioctl (remotesock,SIOCINQ , &avail) ==0 && + avail ==INT_MAX ) {
[Severity: Low]
Can this check in main_loop_s() pass without the TFO data path ever running?
The check runs whenever -o MPTFO is set. It does not depend on whether the accepted connection actually received data in the SYN.
In run_tests_mptfo() in mptcp_connect.sh, the first run_tests_lo call for each address family has no cached TFO cookie:
run_tests_lo "$ns1" "$ns2" 10.0.1.1 0 "-o MPTFO"
The server uses tcp_fastopen=2, which requires a cookie. So the child is not created with TCP_SYNACK_FASTOPEN, and subflow_prep_synack() in net/mptcp/subflow.c skips this:
if (synack_type == TCP_SYNACK_FASTOPEN)
mptcp_fastopen_subflow_synack_set_params(subflow, req);In that case the map_seq = -skb->len skb is never queued. With the default do_tcp=0, run_tests_lo does only one MPTCP to MPTCP transfer, so that whole invocation cannot fail. Only the second invocation per family covers the bug.
The poll() return value is also ignored, and the timeout is hard-coded to 1000 instead of using poll_timeout. TFO could silently stop being used, for example with no cached cookie, TFO disabled, an early fallback, or no data in the SYN. Would the test then still pass, with nothing in its output to show it?
Also, only the INT_MAX symptom is detected. With the fix, mptcp_inq_hint() returns mptcp_data_avail(). For a passive TFO msk that should be the TFO payload length. A wrong value below INT_MAX would pass here, such as 0 if the TFO skb was not counted.
The test knows how much data the client sends. Could it check avail > 0 && avail <= sent, and fail or skip when poll() returns <= 0?
Quoted 6 lines
tools/testing/selftests/net/mptcp/mptcp_connect.c +6
-0+fprintf (stderr,"TFO SIOCINQ overflow\n" ); +close (remotesock); +return 1 ; + } + } +
[ ... ]
Signature · 1 line
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1793676064.git.tanggeliang%40kylinos.cn
Geliang Tang
reviewerPATCH v5 4/7 mptcp: implement peek_len for proto_ops
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
Add mptcp_inq() to compute readable bytes at the MPTCP level using mptcp_data_avail() (bytes_received - bytes_consumed). Returns 0 during handshake (TCPF_SYN_SENT/TCPF_SYN_RECV), INT_MAX when avail >= INT_MAX, otherwise the actual byte count.
Wire into mptcp_peek_len() and assign .peek_len in both mptcp_stream_ops and mptcp_v6_stream_ops.
This prepares for upcoming kTLS and sockmap support.
--- net/mptcp/protocol.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
net/mptcp/protocol.c +22 -0
@@ -4791,6 +4791,26 @@ static ssize_t mptcp_splice_read(struct socket *sock, loff_t *ppos,return ret; } +static int mptcp_inq (struct sock *sk) +{ +const struct mptcp_sock *msk =mptcp_sk (sk); +u64 avail; + +if ((1 << sk->sk_state) & (TCPF_SYN_SENT |TCPF_SYN_RECV )) +return 0 ; + + avail =mptcp_data_avail (msk); +if (avail >=INT_MAX ) +return INT_MAX ; + +return (unsigned int )avail; +} + +static int mptcp_peek_len (struct socket *sock) +{ +return mptcp_inq (sock->sk); +} +static const struct proto_ops mptcp_stream_ops = { .family =PF_INET , .owner =THIS_MODULE ,
@@ -4813,6 +4833,7 @@ static const struct proto_ops mptcp_stream_ops = { .set_rcvlowat = mptcp_set_rcvlowat, .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, + .peek_len = mptcp_peek_len, };static struct inet_protosw mptcp_protosw = {
@@ -4925,6 +4946,7 @@ static const struct proto_ops mptcp_v6_stream_ops = { .set_rcvlowat = mptcp_set_rcvlowat, .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, + .peek_len = mptcp_peek_len, };static struct proto mptcp_v6_prot;
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH mptcp-next v5 4/7] mptcp: implement peek_len for proto_ops
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…
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 new mptcp_inq() in net/mptcp/protocol.c (used only by the new mptcp_peek_len() for proto_ops.peek_len) repeats the core of the…
- [Low] The commit author is Geliang Tang <[email protected]>, but Geliang's only Signed-off-by on commit "mptcp: implement peek_len for…
--
mptcp: implement peek_len for proto_ops
This commit adds mptcp_inq(), which uses mptcp_data_avail() to compute the readable bytes at the MPTCP level. It wires mptcp_inq() into a new mptcp_peek_len() callback set in both mptcp_stream_ops and mptcp_v6_stream_ops. It prepares for upcoming kTLS and sockmap support.
Quoted 3 lines
Co-developed-by Zqiang <[email protected]>Signed-off-by Zqiang <[email protected]>Signed-off-by Geliang Tang <[email protected]>
[Severity: Low]
This isn't a bug, but the author line is Geliang Tang <[email protected]>, while Geliang's only sign-off here uses [email protected]. checkpatch reports this as FROM_SIGN_OFF_MISMATCH.
The first patch in the series ("mptcp: update mptcp_check_readable") signs off with [email protected].
Could the addresses be made consistent? Either a matching Signed-off-by or an in-body From: line would work.
Quoted 12 lines
net/mptcp/protocol.c +4
-0@@ -4791,6 +4791,26 @@ static ssize_t mptcp_splice_read(struct socket *sock, loff_t *ppos,return ret; } +static int mptcp_inq (struct sock *sk) +{ +const struct mptcp_sock *msk =mptcp_sk (sk); +u64 avail;
net/mptcp/protocol.c static ssize_t mptcp_splice_read(struct socket *sock, loff_t *ppos, · line 4807
Quoted 10 lines
net/mptcp/protocol.c +10
-0+ +if ((1 << sk->sk_state) & (TCPF_SYN_SENT |TCPF_SYN_RECV )) +return 0 ; + + avail =mptcp_data_avail (msk); +if (avail >=INT_MAX ) +return INT_MAX ; + +return (unsigned int )avail; +}
[Severity: Low]
Does this need to be a separate copy of mptcp_inq_hint()? The core of that existing helper in net/mptcp/protocol.c does the same computation:
net/mptcp/protocol.c:mptcp_inq_hint() {
u64 hint_val = mptcp_data_avail(msk);
if (hint_val >= INT_MAX)
return INT_MAX;
if (!hint_val &&
(sk->sk_state == TCP_CLOSE || (sk->sk_shutdown & RCV_SHUTDOWN)))
return 1;
return (unsigned int)hint_val;
}The two helpers differ in ways the commit message does not mention.
mptcp_inq() returns 0 in SYN_SENT/SYN_RECV and leaves out the end-of-file hint of 1. That matches tcp_inq(), so it looks right for peek_len, but the difference isn't documented.
SIOCINQ also drains the backlog before it reads the counters:
net/mptcp/protocol.c:mptcp_ioctl() {
...
case SIOCINQ:
...
lock_sock(sk);
if (mptcp_move_skbs(sk))
mptcp_cleanup_rbuf(msk, 0);
*karg = mptcp_inq_hint(sk);
release_sock(sk);
...
}mptcp_peek_len()->mptcp_inq() reads mptcp_data_avail() without the socket lock and without draining msk->backlog_list.
While skbs are still waiting on the backlog, can peek_len report fewer bytes than SIOCINQ for the same socket? For TCP, tcp_peek_len() and SIOCINQ both return tcp_inq(), so the two values cannot differ this way.
For a consumer such as strp_peek_len(), this would only delay parsing until the next data_ready. There is also no in-tree MPTCP user of peek_len yet.
Separately, the earlier commit "mptcp: use mptcp_data_avail in mptcp_inq_hint" says it "aligns mptcp_inq_hint() with mptcp_inq()". However, mptcp_inq() is only added by this patch, and the two helpers are still separate copies at the end of the series.
Could mptcp_inq_hint() be built on mptcp_inq() plus the end-of-file hint? If not, could the reasons for leaving the backlog drain and the end-of-file hint out of peek_len be documented?
Quoted 6 lines
net/mptcp/protocol.c +6
-0+ +static int mptcp_peek_len (struct socket *sock) +{ +return mptcp_inq (sock->sk); +} +
[ ... ]
Signature · 1 line
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1793676064.git.tanggeliang%40kylinos.cn
Geliang Tang
reviewerPATCH v5 5/7 mptcp: add sendmsg_locked to proto_ops
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
MPTCP currently provides a standard sendmsg() implementation which acquires and releases the socket lock internally. However, certain upper layers need to call the sendmsg method while the socket lock is already held.
Split the existing mptcp_sendmsg() into mptcp_sendmsg_locked() which assumes the caller holds the socket lock, and a tiny wrapper mptcp_sendmsg() that acquires the lock and calls the locked version. Add msk_owned_by_me() assertion to enforce the locking requirement. Expose .sendmsg_locked in both mptcp_stream_ops and mptcp_v6_stream_ops.
This prepares for upcoming kTLS and sockmap support.
--- net/mptcp/protocol.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
net/mptcp/protocol.c +16 -4
@@ -2038,7 +2038,7 @@ static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) } } -static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) +static int mptcp_sendmsg_locked (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);struct page_frag *pfrag;
@@ -2046,12 +2046,12 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)int ret =0 ;long timeo; +msk_owned_by_me (msk); +/* silently ignore everything else */ msg->msg_flags &=MSG_MORE |MSG_DONTWAIT |MSG_NOSIGNAL |MSG_FASTOPEN |MSG_EOR ; -lock_sock (sk); -mptcp_rps_record_subflows (msk); if (unlikely(inet_test_bit(DEFER_CONNECT, sk) ||
@@ -2167,7 +2167,6 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) } out: -release_sock (sk);return copied; do_error:
@@ -2180,6 +2179,17 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) goto out; } +static int mptcp_sendmsg (struct sock *sk,struct msghdr *msg,size_t len) +{ +int ret; + +lock_sock (sk); + ret =mptcp_sendmsg_locked (sk, msg, len); +release_sock (sk); + +return ret; +} +static void mptcp_rcv_space_adjust (struct mptcp_sock *msk,int copied);static void mptcp_eat_recv_skb (struct sock *sk,struct sk_buff *skb)
@@ -4834,6 +4844,7 @@ static const struct proto_ops mptcp_stream_ops = { .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, .peek_len = mptcp_peek_len, + .sendmsg_locked = mptcp_sendmsg_locked, };static struct inet_protosw mptcp_protosw = {
@@ -4947,6 +4958,7 @@ static const struct proto_ops mptcp_v6_stream_ops = { .read_sock = mptcp_read_sock, .splice_read = mptcp_splice_read, .peek_len = mptcp_peek_len, + .sendmsg_locked = mptcp_sendmsg_locked, };static struct proto mptcp_v6_prot;
Signature · 1 line
2.55.0
Geliang Tang
reviewerPATCH v5 6/7 mptcp: track app-limited state in mptcp_sendmsg
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
Add mptcp_rate_check_app_limited() that walks every subflow and runs tcp_rate_check_app_limited() under each subflow's socket lock. The helper bails out early when MPTCP still has data to send: unsent data (write_seq != snd_nxt), skbs on the send queue (mptcp_send_head), or pending retransmission (MPTCP_WORK_RTX or MPTCP_RETRANSMIT flags). In these cases marking subflows app-limited would mislead congestion controllers.
Invoke from mptcp_sendmsg_locked() after send-side setup so BBR and similar controllers can ignore rate samples taken while the connection is genuinely application-limited.
--- net/mptcp/protocol.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
net/mptcp/protocol.c +23 -0
@@ -2038,6 +2038,26 @@ static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) } } +static void mptcp_rate_check_app_limited (struct sock *sk) +{ +struct mptcp_sock *msk =mptcp_sk (sk); +struct mptcp_subflow_context *subflow; + +if (msk->write_seq != msk->snd_nxt ||mptcp_send_head (sk) || +test_bit (MPTCP_WORK_RTX , &msk->flags) || +test_bit (MPTCP_RETRANSMIT , &msk->cb_flags)) +return ; + +mptcp_for_each_subflow (msk, subflow) { +struct sock *ssk =mptcp_subflow_tcp_sock (subflow); +bool slow; + + slow =lock_sock_fast_nested (ssk); +tcp_rate_check_app_limited (ssk); +unlock_sock_fast (ssk, slow); + } +} +static int mptcp_sendmsg_locked (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);
@@ -2068,6 +2088,9 @@ static int mptcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len) timeo =sock_sndtimeo (sk, msg->msg_flags &MSG_DONTWAIT ); +/* is sending application-limited? */ +mptcp_rate_check_app_limited (sk); +if ((1 << sk->sk_state) & ~(TCPF_ESTABLISHED |TCPF_CLOSE_WAIT )) { ret =sk_stream_wait_connect (sk, &timeo);if (ret)
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH mptcp-next v5 6/7] mptcp: track app-limited state in mptcp_sendmsg
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…
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 for "mptcp: track app-limited state in mptcp_sendmsg" says mptcp_rate_check_app_limited() bails out on "skbs…
- [Low] The commit author is "Geliang Tang <[email protected]>", but the only Signed-off-by is "Geliang Tang <[email protected]>".
- [Low] mptcp_sendmsg_locked() now calls mptcp_rate_check_app_limited() unconditionally (protocol.c:2092).
- [Low] mptcp_rate_check_app_limited() reads msk->cb_flags with test_bit(MPTCP_RETRANSMIT, &msk->cb_flags) (protocol.c:2048) without…
--
mptcp: track app-limited state in mptcp_sendmsg
This commit adds mptcp_rate_check_app_limited(). The helper walks every subflow and calls tcp_rate_check_app_limited() under each subflow socket lock, unless the msk still has unsent data, pending dfrags or a pending retransmission. It is called from mptcp_sendmsg_locked() so that BBR and similar congestion controllers can ignore rate samples taken while the connection is application-limited.
Quoted 4 lines
The
helper bails out early when MPTCP still has data to send: unsent data (write_seq!=snd_nxt), skbs on the send queue (mptcp_send_head), or pending retransmission (MPTCP_WORK_RTXorMPTCP_RETRANSMITflags).
[Severity: Low]
Is "skbs on the send queue" accurate here? mptcp_send_head() returns a dfrag pointer, not an skb:
net/mptcp/protocol.h:mptcp_send_head() {
const struct mptcp_sock *msk = mptcp_sk(sk);
return msk->first_pending;
}msk->first_pending is a struct mptcp_data_frag pointing at the first unsent dfrag on msk->rtx_queue. The msk itself has no skb send queue.
The check is still needed even though write_seq != snd_nxt is also tested. __mptcp_retransmit_pending_data() resets first_pending without moving snd_nxt:
msk->first_pending = rtx_head;
Could the message describe this check as pending or re-injected dfrags at the msk level?
Quoted 1 line
Signed-off-by Geliang Tang <[email protected]>
[Severity: Low]
This isn't a bug, but this Signed-off-by does not match the author address "Geliang Tang <[email protected]>". checkpatch.pl flags this as a From:/Signed-off-by: mismatch.
Other patches in this series, such as "mptcp: update mptcp_check_readable", sign off as [email protected]. Could the trailer be changed to match the From: address, or a matching Signed-off-by be added?
Quoted 7 lines
net/mptcp/protocol.c +0
-0@@ -2038,6 +2038,26 @@ static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) } }
net/mptcp/protocol.c static void mptcp_rps_record_subflows(const struct mptcp_sock *msk) · line 2049
Quoted 10 lines
net/mptcp/protocol.c +9
-0+static void mptcp_rate_check_app_limited (struct sock *sk) +{ +struct mptcp_sock *msk =mptcp_sk (sk); +struct mptcp_subflow_context *subflow; + +if (msk->write_seq != msk->snd_nxt ||mptcp_send_head (sk) || +test_bit (MPTCP_WORK_RTX , &msk->flags) || +test_bit (MPTCP_RETRANSMIT , &msk->cb_flags)) +return ;
[Severity: Low]
Is it safe to read msk->cb_flags here without the msk data lock? Every other access to cb_flags in net/mptcp happens under sk->sk_lock.slock and uses non-atomic read-modify-write. For example, mptcp_retransmit_timer() does this under bh_lock_sock():
} else {
/* delegate our work to tcp_release_cb() */
__set_bit(MPTCP_RETRANSMIT, &msk->cb_flags);
}
bh_unlock_sock(sk);mptcp_release_cb() is __must_hold(slock), and it clears the bits with:
msk->cb_flags &= ~flags;
mptcp_sendmsg_locked() only owns the msk (msk_owned_by_me()). The timer softirq on another CPU can therefore run the __set_bit() at the same time as this test_bit(). This seems to be the only lockless reader of cb_flags, and KCSAN may report it.
The check also runs only once, before the subflow loop. If the retransmit timer fires during the loop, tp->app_limited still ends up set on every subflow. Taking mptcp_data_lock() here would not close that window, because the lock cannot be held across lock_sock_fast_nested().
Could the read be annotated as an intentionally racy heuristic, with data_race() or READ_ONCE()? The other option is to take mptcp_data_lock() around the msk-level checks.
Quoted 15 lines
net/mptcp/protocol.c +11
-0+ +mptcp_for_each_subflow (msk, subflow) { +struct sock *ssk =mptcp_subflow_tcp_sock (subflow); +bool slow; + + slow =lock_sock_fast_nested (ssk); +tcp_rate_check_app_limited (ssk); +unlock_sock_fast (ssk, slow); + } +} +static int mptcp_sendmsg_locked (struct sock *sk,struct msghdr *msg,size_t len) {struct mptcp_sock *msk =mptcp_sk (sk);
net/mptcp/protocol.c static int mptcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len) · line 2093
Quoted 6 lines
net/mptcp/protocol.c +3
-0@@ -2068,6 +2088,9 @@ static int mptcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len) timeo =sock_sndtimeo (sk, msg->msg_flags &MSG_DONTWAIT ); +/* is sending application-limited? */ +mptcp_rate_check_app_limited (sk); +
[Severity: Low]
Does this add a lock round trip per subflow to every sendmsg() on an idle msk? This call is unconditional. When there is no unsent or re-injected data and no retransmit flag is pending, mptcp_rate_check_app_limited() calls lock_sock_fast_nested() and unlock_sock_fast() on every ssk in msk->conn_list.
Each one costs a spin_lock_bh()/spin_unlock_bh() pair. If the ssk is owned, it costs a full lock_sock()/release_sock() with backlog processing instead.
Small-write and request/response workloads usually hit this state on every call, because the previous send has already been pushed (write_seq == snd_nxt and first_pending == NULL). The equivalent check in tcp_sendmsg_locked() is plain arithmetic on a socket the caller already owns. Here the work is done even when no subflow uses a rate-sample consumer such as BBR.
The number of subflows is bounded, and __mptcp_push_pending() already locks subflows on this path, so the impact is probably small. Could the commit message mention this cost, or include a measurement?
Quoted 3 lines
net/mptcp/protocol.c +0
-0if ((1 << sk->sk_state) & ~(TCPF_ESTABLISHED |TCPF_CLOSE_WAIT )) { ret =sk_stream_wait_connect (sk, &timeo);if (ret)
Signature · 1 line
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1793676064.git.tanggeliang%40kylinos.cn
Geliang Tang
reviewerPATCH v5 7/7 selftests: mptcp: sockopt: check app_limited
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
After a small data exchange, assert tcpi_delivery_rate_app_limited == 1.
rate_app_limited starts at 1 (tcp_init_sock) and is cleared only by non-app-limited rate samples. The preceding commit makes mptcp_rate_check_app_limited() set tp->app_limited on subflows when MPTCP has no pending data, marking outgoing skbs as app-limited so rate samples don't clear rate_app_limited.
This guards against regressions in subflow app-limited accounting.
--- tools/testing/selftests/net/mptcp/mptcp_sockopt.c | 5 +++++ 1 file changed, 5 insertions(+)
tools/testing/selftests/net/mptcp/mptcp_sockopt.c +5 -0
@@ -635,6 +635,11 @@ static void connect_one_server(int fd, int pipefd)do_getsockopts (&s, fd, total, total);assert (s.mptcpi_rcv_delta == (uint64_t )total); + +/* app-limited accounting only checked under EXPECT_ALL_FEATURES */ +if (expect_all_features ()) +assert (s.tcp_info.tcpi_delivery_rate_app_limited ==1 ); +close (fd); }
Signature · 1 line
2.55.0
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal (except selftest_mptcp_join): Success! ✅
- KVM Validation: normal (only selftest_mptcp_join): Success! ✅
- KVM Validation: debug (except selftest_mptcp_join): Success! ✅
- KVM Validation: debug (only selftest_mptcp_join): Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Perf: Unstable: 9 failed test(s): error:mptcp-perf error:sched-baseline(18) error:sched-bbr(14) error:sched-clientlim(12) error:sched-cpu-preempt(2) error:sched-mem-pressure(9) error:sched-rmem(16) error:sched-serverlim(28) error:sched-weak-secondary(12) - Critical: mptcp-perf/01-Test_1/client.log: Global Timeout - Critical: sched-baseline/01-slow_primary/client.log: Global Timeout - Critical: sched-baseline/02-tiny_primary/client.log: Global Timeout - Critical: sched-baseline/03-fast_both/client.log: Global Timeout - Critical: sched-baseline/04-balanced/client.log: Global Timeout - Critical: sched-baseline/05-slow_near_primary/client.log: Global Timeout - Critical: sched-baseline/06-slow_secondary/client.log: Global Timeout - Critical: sched-baseline/07-very_fast/client.log: Global Timeout - Critical: sched-baseline/08-shallow_primary/client.log: Global Timeout - Critical: sched-baseline/09-high_lat_primary/client.log: Global Timeout - Critical: sched-baseline/10-huge_lat_primary/client.log: Global Timeout - Critical: sched-baseline/11-high_lat_secondary/client.log: Global Timeout - Critical: sched-baseline/12-huge_lat_secondary/client.log: Global Timeout - Critical: sched-baseline/13-bloated_primary/client.log: Global Timeout - Critical: sched-baseline/14-bloated_secondary/client.log: Global Timeout - Critical: sched-baseline/15-slow_primary_upload/client.log: Global Timeout - Critical: sched-baseline/16-balanced_upload/client.log: Global Timeout - Critical: sched-baseline/17-slow_primary_parallel_4/client.log: Global Timeout - Critical: sched-baseline/18-balanced_parallel_4/client.log: Global Timeout - Critical: sched-bbr/01-slow_primary_bbr/client.log: Global Timeout - Critical: sched-bbr/02-balanced_bbr/client.log: Global Timeout - Critical: sched-bbr/03-slow_near_primary_bbr/client.log: Global Timeout - Critical: sched-bbr/04-high_lat_primary_bbr/client.log: Global Timeout - Critical: sched-bbr/05-huge_lat_primary_bbr/client.log: Global Timeout - Critical: sched-bbr/06-high_lat_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/07-huge_lat_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/08-slow_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/09-very_fast_bbr/client.log: Global Timeout - Critical: sched-bbr/10-bloated_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/11-bloated_slow_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/12-very_bloated_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/13-bad_secondary_bbr/client.log: Global Timeout - Critical: sched-bbr/14-far_secondary_bbr/client.log: Global Timeout - Critical: sched-clientlim/01-slow_primary_bw_5/client.log: Global Timeout - Critical: sched-clientlim/02-balanced_bw_5/client.log: Global Timeout - Critical: sched-clientlim/03-huge_lat_primary_bw_5/client.log: Global Timeout - Critical: sched-clientlim/04-slow_secondary_bw_5/client.log: Global Timeout - Critical: sched-clientlim/05-slow_primary_bw_10/client.log: Global Timeout - Critical: sched-clientlim/06-balanced_bw_10/client.log: Global Timeout - Critical: sched-clientlim/07-huge_lat_primary_bw_10/client.log: Global Timeout - Critical: sched-clientlim/08-slow_secondary_bw_10/client.log: Global Timeout - Critical: sched-clientlim/09-slow_primary_bw_50/client.log: Global Timeout - Critical: sched-clientlim/10-balanced_bw_50/client.log: Global Timeout - Critical: sched-clientlim/11-huge_lat_primary_bw_50/client.log: Global Timeout - Critical: sched-clientlim/12-slow_secondary_bw_50/client.log: Global Timeout - Critical: sched-cpu-preempt/01-shallow_primary/client.log: Global Timeout - Critical: sched-cpu-preempt/02-shallow_primary_cpu_hog/client.log: Global Timeout - Critical: sched-mem-pressure/01-bloated_slow_secondary_receiver_tcp_mem_parallel_1/client.log: Global Timeout - Critical: sched-mem-pressure/02-bloated_slow_secondary_receiver_tcp_mem_parallel_16/client.log: Global Timeout - Critical: sched-mem-pressure/03-bloated_slow_secondary_receiver_tcp_mem_parallel_99/client.log: Global Timeout - Critical: sched-mem-pressure/04-very_bloated_primary_both_tcp_mem_parallel_1/client.log: Global Timeout - Critical: sched-mem-pressure/05-slow_primary_both_tcp_mem_parallel_1/client.log: Global Timeout - Critical: sched-mem-pressure/06-balanced_both_tcp_mem_parallel_1/client.log: Global Timeout - Critical: sched-mem-pressure/07-very_bloated_primary_both_tcp_mem_parallel_10/client.log: Global Timeout - Critical: sched-mem-pressure/08-slow_primary_both_tcp_mem_parallel_10/client.log: Global Timeout - Critical: sched-mem-pressure/09-balanced_both_tcp_mem_parallel_10/client.log: Global Timeout - Critical: sched-rmem/01-slow_primary_rmem_200/client.log: Global Timeout - Critical: sched-rmem/02-balanced_rmem_200/client.log: Global Timeout - Critical: sched-rmem/03-huge_lat_primary_rmem_200/client.log: Global Timeout - Critical: sched-rmem/04-bloated_primary_rmem_200/client.log: Global Timeout - Critical: sched-rmem/05-slow_primary_rmem_800/client.log: Global Timeout - Critical: sched-rmem/06-balanced_rmem_800/client.log: Global Timeout - Critical: sched-rmem/07-huge_lat_primary_rmem_800/client.log: Global Timeout - Critical: sched-rmem/08-bloated_primary_rmem_800/client.log: Global Timeout - Critical: sched-rmem/09-slow_primary_rmem_2000/client.log: Global Timeout - Critical: sched-rmem/10-balanced_rmem_2000/client.log: Global Timeout - Critical: sched-rmem/11-huge_lat_primary_rmem_2000/client.log: Global Timeout - Critical: sched-rmem/12-bloated_primary_rmem_2000/client.log: Global Timeout - Critical: sched-rmem/13-slow_primary_rmem_6000/client.log: Global Timeout - Critical: sched-rmem/14-balanced_rmem_6000/client.log: Global Timeout - Critical: sched-rmem/15-huge_lat_primary_rmem_6000/client.log: Global Timeout - Critical: sched-rmem/16-bloated_primary_rmem_6000/client.log: Global Timeout - Critical: sched-serverlim/01-slow_primary_bw_5_burst_10/client.log: Global Timeout - Critical: sched-serverlim/02-balanced_bw_5_burst_10/client.log: Global Timeout - Critical: sched-serverlim/03-huge_lat_primary_bw_5_burst_10/client.log: Global Timeout - Critical: sched-serverlim/04-slow_secondary_bw_5_burst_10/client.log: Global Timeout - Critical: sched-serverlim/05-slow_primary_bw_5_burst_250/client.log: Global Timeout - Critical: sched-serverlim/06-balanced_bw_5_burst_250/client.log: Global Timeout - Critical: sched-serverlim/07-huge_lat_primary_bw_5_burst_250/client.log: Global Timeout - Critical: sched-serverlim/08-slow_secondary_bw_5_burst_250/client.log: Global Timeout - Critical: sched-serverlim/09-slow_primary_bw_10_burst_10/client.log: Global Timeout - Critical: sched-serverlim/10-balanced_bw_10_burst_10/client.log: Global Timeout - Critical: sched-serverlim/11-huge_lat_primary_bw_10_burst_10/client.log: Global Timeout - Critical: sched-serverlim/12-slow_secondary_bw_10_burst_10/client.log: Global Timeout - Critical: sched-serverlim/13-slow_primary_bw_10_burst_250/client.log: Global Timeout - Critical: sched-serverlim/14-balanced_bw_10_burst_250/client.log: Global Timeout - Critical: sched-serverlim/15-huge_lat_primary_bw_10_burst_250/client.log: Global Timeout - Critical: sched-serverlim/16-slow_secondary_bw_10_burst_250/client.log: Global Timeout - Critical: sched-serverlim/17-slow_primary_bw_50_burst_10/client.log: Global Timeout - Critical: sched-serverlim/18-balanced_bw_50_burst_10/client.log: Global Timeout - Critical: sched-serverlim/19-huge_lat_primary_bw_50_burst_10/client.log: Global Timeout - Critical: sched-serverlim/20-slow_secondary_bw_50_burst_10/client.log: Global Timeout - Critical: sched-serverlim/21-slow_primary_bw_50_burst_250/client.log: Global Timeout - Critical: sched-serverlim/22-balanced_bw_50_burst_250/client.log: Global Timeout - Critical: sched-serverlim/23-huge_lat_primary_bw_50_burst_250/client.log: Global Timeout - Critical: sched-serverlim/24-slow_secondary_bw_50_burst_250/client.log: Global Timeout - Critical: sched-serverlim/25-slow_primary_bw_10_burst_10_wmem_6000/client.log: Global Timeout - Critical: sched-serverlim/26-balanced_bw_10_burst_10_wmem_6000/client.log: Global Timeout - Critical: sched-serverlim/27-slow_primary_bw_50_burst_10_wmem_6000/client.log: Global Timeout - Critical: sched-serverlim/28-balanced_bw_50_burst_10_wmem_6000/client.log: Global Timeout - Critical: sched-weak-secondary/01-weak_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/02-bad_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/03-far_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/04-bloated_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/05-bloated_slow_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/06-very_bloated_secondary/client.log: Global Timeout - Critical: sched-weak-secondary/07-weak_secondary_backup/client.log: Global Timeout - Critical: sched-weak-secondary/08-bad_secondary_backup/client.log: Global Timeout - Critical: sched-weak-secondary/09-far_secondary_backup/client.log: Global Timeout - Critical: sched-weak-secondary/10-bloated_secondary_backup/client.log: Global Timeout - Critical: sched-weak-secondary/11-bloated_slow_secondary_backup/client.log: Global Timeout - Critical: sched-weak-secondary/12-very_bloated_secondary_backup/client.log: Global Timeout ❌
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/41574850749
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/2b9fa93dc527
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=1199752
If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normalFor more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)