multipath-tcp / mptcp_net-next

Development version of the Upstream MultiPath TCP Linux kernel 🐧
https://mptcp.dev
Other
278 stars 39 forks source link

selftests: `mptcp_join`: tests `Infinite map` & `MP_FAIL MP_RST` are unstable #491

Open matttbe opened 3 months ago

matttbe commented 3 months ago

It looks like we didn't have this issue recently on our side, but the NetDev CI got it a few times, e.g.

# 104 Infinite map
#       Info: Test file (size 128 KB) for client
#       Info: Test file (size 128 KB) for server
# copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
# [FAIL] client exit code 124, server 0
# Server ns stats
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       22                 0.0
# TcpOutSegs                      104                0.0
# TcpRetransSegs                  18                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             11                 0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPRcvCoalesce            1                  0.0
# TcpExtTCPOrigDataSent           99                 0.0
# TcpExtTCPDelivered              102                0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            8                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# Client ns stats
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       42                 0.0
# TcpOutSegs                      328                0.0
# TcpExtOutOfWindowIcmps          195                0.0
# TcpExtDelayedACKLost            18                 0.0
# TcpExtTCPPureAcks               4                  0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPDSACKOldSent           18                 0.0
# TcpExtTCPOrigDataSent           31                 0.0
# TcpExtTCPDelivered              32                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# 
# netns ns1-664333d0-biRrEz socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q     Local Address:Port       Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
# tcp   ESTAB      0      8192   [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:57932 timer:(on,17sec,0) ino:0 sk:1 cgroup:unreachable:1 <->
#  ts sack cubic wscale:7,7 rto:26711 rtt:3773.49/5734.33 ato:40 mss:1448 pmtu:1500 rcvmss:1448 advmss:1448 cwnd:58 bytes_sent:156404 bytes_retrans:22004 bytes_acked:126208 bytes_received:40960 segs_out:121 segs_in:45 data_segs_out:117 data_segs_in:31 send 178051bps lastsnd:9009 lastrcv:62289 lastack:16689 pacing_rate 356096bps delivery_rate 4088bps delivered:103 busy:61267ms sndbuf_limited:320ms(0.5%) unacked:6 retrans:0/18 dsack_dups:9 rcv_rtt:181.375 rcv_space:14600 rcv_ssthresh:64076 minrtt:0.413 snd_wnd:185472 rcv_wnd:64128 rehash:9 tcp-ulp-mptcp flags:Mec token:0000(id:0)/ae9a5641(id:0) seq:e9f62cbbfbf53ed7 sfseq:4001 ssnoff:1c3f9354 maplen:6000
# mptcp FIN-WAIT-1 0      0      [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:57932 timer:(keepalive,27sec,0) ino:0 sk:2 cgroup:unreachable:1 ---
#  subflows_max:2 remote_key token:ae9a5641 write_seq:6608017445689467489 snd_una:6608017445689344580 rcv_nxt:16858711441005715159 csum_enabled:1 bytes_retrans:65536 bytes_sent:68864 bytes_received:40960 bytes_acked:8192 subflows_total:1 last_data_sent:62396 last_data_recv:62423 last_ack_recv:62425                                                                                                                                                                                                                                                                                                                                                                 
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       22                 0.0
# TcpOutSegs                      104                0.0
# TcpRetransSegs                  18                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             11                 0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPRcvCoalesce            1                  0.0
# TcpExtTCPOrigDataSent           99                 0.0
# TcpExtTCPDelivered              102                0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            8                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# 
# netns ns2-664333d0-biRrEz socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q Local Address:Port  Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
# tcp   FIN-WAIT-1 0      90141       10.0.1.2:57932     10.0.1.1:10103 timer:(persist,3.331ms,5) ino:0 sk:3 cgroup:unreachable:1 <--
#  ts sack cubic wscale:7,7 rto:203 backoff:5 rtt:2.402/2.418 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:30 bytes_sent:431040 bytes_acked:40961 bytes_received:134400 segs_out:328 segs_in:122 data_segs_out:314 data_segs_in:117 send 144679434bps lastsnd:3165 lastrcv:17149 lastack:9565 pacing_rate 289283592bps delivery_rate 34558472bps delivered:32 busy:62855ms rcv_rtt:247.525 rcv_space:14480 rcv_ssthresh:201816 notsent:90141 minrtt:0.122 snd_wnd:64128 rcv_wnd:201856 tcp-ulp-mptcp flags:Mmec token:0000(id:0)/5e20ec48(id:0) seq:5bb464db27e78f44 sfseq:1ed01 ssnoff:8b240a06 maplen:2000
# mptcp FIN-WAIT-2 0      0           10.0.1.2:57932     10.0.1.1:10103 timer:(keepalive,57sec,0) ino:0 sk:4 cgroup:unreachable:1 ---
#  subflows_max:2 fallback remote_key token:5e20ec48 write_seq:16858711441005805300 snd_una:16858711441005805300 rcv_nxt:6608017445689470788 csum_enabled:1 retransmits:1 bytes_sent:131100 bytes_received:134400 bytes_acked:65536 last_data_sent:62826 last_data_recv:17151 last_ack_recv:62850                                                                                                                                                                                                                                                                                                                     
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       42                 0.0
# TcpOutSegs                      328                0.0
# TcpExtOutOfWindowIcmps          195                0.0
# TcpExtDelayedACKLost            18                 0.0
# TcpExtTCPPureAcks               4                  0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPDSACKOldSent           18                 0.0
# TcpExtTCPOrigDataSent           31                 0.0
# TcpExtTCPDelivered              32                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
#       Info: 5 corrupted pkts
#       syn                                 [ OK ]
#       synack                              [ OK ]
#       ack                                 [ OK ]
#       sum                                 [ OK ]
#       csum                                [ OK ]
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       rtx                                 [ OK ]
#       rstrx                               [ OK ]
#       itx                                 [ OK ]
#       infirx                              [FAIL] got 0 infinite map[s] RX expected 1
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       Info: invert

https://netdev-3.bots.linux.dev/vmksft-mptcp-dbg/results/594621/1-mptcp-join-sh/stdout

Or:

# 104 Infinite map
#       Info: Test file (size 128 KB) for client
#       Info: Test file (size 128 KB) for server
# copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
# copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
# [FAIL] client exit code 2, server 0
# Server ns stats
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       14                 0.0
# TcpOutSegs                      57                 0.0
# TcpRetransSegs                  9                  0.0
# TcpExtTCPPureAcks               5                  0.0
# TcpExtTCPLossUndo               2                  0.0
# TcpExtTCPLostRetransmit         5                  0.0
# TcpExtTCPTimeouts               8                  0.0
# TcpExtTCPLossProbes             3                  0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              2                  0.0
# TcpExtTCPSackShiftFallback      2                  0.0
# TcpExtTCPRcvCoalesce            1                  0.0
# TcpExtTCPOrigDataSent           52                 0.0
# TcpExtTCPDelivered              53                 0.0
# TcpExtTcpTimeoutRehash          8                  0.0
# TcpExtTCPDSACKRecvSegs          2                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# Client ns stats
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       28                 0.0
# TcpOutSegs                      263                0.0
# TcpExtOutOfWindowIcmps          165                0.0
# TcpExtDelayedACKLost            9                  0.0
# TcpExtTCPPureAcks               4                  0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPDSACKOldSent           9                  0.0
# TcpExtTCPOrigDataSent           31                 0.0
# TcpExtTCPDelivered              32                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# 
# netns ns1-66416404-HBMMnv socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q     Local Address:Port       Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
# tcp   ESTAB      0      1397   [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:43954 timer:(on,23sec,6) ino:0 sk:1 cgroup:unreachable:1 <->
#  ts sack cubic wscale:7,7 rto:27456 backoff:6 rtt:54.05/93.568 ato:40 mss:1448 pmtu:1500 rcvmss:1448 advmss:1448 cwnd:1 ssthresh:43 bytes_sent:81483 bytes_retrans:12619 bytes_acked:67467 bytes_received:40960 segs_out:65 segs_in:37 data_segs_out:61 data_segs_in:31 send 214320bps lastsnd:4023 lastrcv:32158 lastack:31631 pacing_rate 26575688bps delivery_rate 1191528bps delivered:54 busy:32159ms sndbuf_limited:31631ms(98.4%) unacked:1 retrans:1/9 lost:1 dsack_dups:2 rcv_rtt:2 rcv_space:14600 rcv_ssthresh:64076 minrtt:0.15 snd_wnd:69888 rcv_wnd:64128 rehash:8 tcp-ulp-mptcp flags:Mec token:0000(id:0)/3b1cfa1e(id:0) seq:2af0e7668d045403 sfseq:4001 ssnoff:2d590bf maplen:6000
# mptcp FIN-WAIT-1 0      0      [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:43954 timer:(keepalive,58sec,0) ino:0 sk:2 cgroup:unreachable:1 ---
#  subflows_max:2 remote_key token:3b1cfa1e write_seq:2820817600653480805 snd_una:2820817600653357896 rcv_nxt:3094227371642106883 csum_enabled:1 bytes_sent:68864 bytes_received:40960 bytes_acked:8192 subflows_total:1 last_data_sent:32054 last_data_recv:32280 last_ack_recv:32282                                                                                                                                                                                                                                                                                                                                                                                                        
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       14                 0.0
# TcpOutSegs                      57                 0.0
# TcpRetransSegs                  9                  0.0
# TcpExtTCPPureAcks               5                  0.0
# TcpExtTCPLossUndo               2                  0.0
# TcpExtTCPLostRetransmit         5                  0.0
# TcpExtTCPTimeouts               8                  0.0
# TcpExtTCPLossProbes             3                  0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              2                  0.0
# TcpExtTCPSackShiftFallback      2                  0.0
# TcpExtTCPRcvCoalesce            1                  0.0
# TcpExtTCPOrigDataSent           52                 0.0
# TcpExtTCPDelivered              53                 0.0
# TcpExtTcpTimeoutRehash          8                  0.0
# TcpExtTCPDSACKRecvSegs          2                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# 
# netns ns2-66416404-HBMMnv socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q Local Address:Port  Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
# tcp   FIN-WAIT-1 0      90141       10.0.1.2:43954     10.0.1.1:10103 timer:(persist,1.803ms,4) ino:0 sk:3 cgroup:unreachable:1 <--
#  ts sack cubic wscale:7,7 rto:203 backoff:4 rtt:2.578/2.157 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:30 bytes_sent:351540 bytes_acked:40961 bytes_received:68864 segs_out:263 segs_in:66 data_segs_out:257 data_segs_in:61 send 134802172bps lastsnd:1445 lastrcv:32190 lastack:4582 pacing_rate 269565128bps delivery_rate 36347656bps delivered:32 busy:32727ms rcv_rtt:428.235 rcv_space:14480 rcv_ssthresh:72776 notsent:90141 minrtt:0.139 snd_wnd:64128 rcv_wnd:72832 tcp-ulp-mptcp flags:Mmec token:0000(id:0)/4e9debc6(id:0) seq:27258ea9971ddad3 sfseq:1078c ssnoff:78515e8c maplen:575
# mptcp FIN-WAIT-2 0      0           10.0.1.2:43954     10.0.1.1:10103 timer:(keepalive,57sec,0) ino:0 sk:4 cgroup:unreachable:1 ---
#  subflows_max:2 fallback remote_key token:4e9debc6 write_seq:3094227371642197024 snd_una:3094227371642197024 rcv_nxt:2820817600653418568 csum_enabled:1 bytes_sent:131100 bytes_received:68864 bytes_acked:65536 last_data_sent:32696 last_data_recv:32192 last_ack_recv:32721                                                                                                                                                                                                                                                                                                                                
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       28                 0.0
# TcpOutSegs                      262                0.0
# TcpExtOutOfWindowIcmps          165                0.0
# TcpExtDelayedACKLost            9                  0.0
# TcpExtTCPPureAcks               4                  0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPDSACKOldSent           9                  0.0
# TcpExtTCPOrigDataSent           31                 0.0
# TcpExtTCPDelivered              32                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
#       Info: 5 corrupted pkts
#       syn                                 [ OK ]
#       synack                              [ OK ]
#       ack                                 [ OK ]
#       sum                                 [ OK ]
#       csum                                [ OK ]
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       rtx                                 [ OK ]
#       rstrx                               [ OK ]
#       itx                                 [ OK ]
#       infirx                              [FAIL] got 0 infinite map[s] RX expected 1
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       Info: invert

Or:

# 104 Infinite map
#       Info: Test file (size 128 KB) for client
#       Info: Test file (size 128 KB) for server
# copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
# [FAIL] client exit code 124, server 0
# Server ns stats
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       22                 0.0
# TcpOutSegs                      106                0.0
# TcpRetransSegs                  17                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             10                 0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPOrigDataSent           102                0.0
# TcpExtTCPDelivered              105                0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            8                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
# Client ns stats
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       42                 0.0
# TcpOutSegs                      302                0.0
# TcpExtOutOfWindowIcmps          185                0.0
# TcpExtDelayedACKLost            17                 0.0
# TcpExtTCPPureAcks               3                  0.0
# TcpExtTCPDSACKOldSent           17                 0.0
# TcpExtTCPOrigDataSent           19                 0.0
# TcpExtTCPHystartTrainDetect     1                  0.0
# TcpExtTCPHystartTrainCwnd       27                 0.0
# TcpExtTCPDelivered              20                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
# 
# netns ns1-663c1dda-RGuqdo socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q     Local Address:Port       Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
# tcp   ESTAB      0      8192   [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:49268 timer:(on,3.035ms,0) ino:0 sk:1 cgroup:unreachable:1 <->
#  ts sack cubic wscale:7,7 rto:21561 rtt:3049.55/4627.75 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:56 bytes_sent:158604 bytes_retrans:21516 bytes_acked:128896 bytes_received:24576 segs_out:122 segs_in:33 data_segs_out:119 data_segs_in:19 send 212721bps lastsnd:18526 lastrcv:62125 lastack:25182 pacing_rate 425440bps delivery_rate 5112bps delivered:106 busy:61170ms unacked:6 retrans:0/17 dsack_dups:9 rcv_rtt:1 rcv_space:14600 rcv_ssthresh:64076 minrtt:0.26 snd_wnd:64128 rcv_wnd:64128 rehash:9 tcp-ulp-mptcp flags:Mec token:0000(id:0)/5121bbc3(id:0) seq:c7e88e0a54298d06 sfseq:4001 ssnoff:287966cd maplen:2000
# mptcp FIN-WAIT-1 0      0      [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:49268 timer:(keepalive,28sec,0) ino:0 sk:1001 cgroup:unreachable:1 ---
#  subflows_max:2 remote_key token:5121bbc3 write_seq:6178882939453869742 snd_una:6178882939453746833 rcv_nxt:14404919583157366022 csum_enabled:1 bytes_retrans:65536 bytes_sent:71552 bytes_received:24576 bytes_acked:8192 subflows_total:1 last_data_sent:62042 last_data_recv:62255 last_ack_recv:62255                                                                                                                                                                                                                                                                                                                              
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       22                 0.0
# TcpOutSegs                      106                0.0
# TcpRetransSegs                  17                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             10                 0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPOrigDataSent           102                0.0
# TcpExtTCPDelivered              105                0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            8                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
# 
# netns ns2-663c1dda-RGuqdo socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q Local Address:Port  Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
# tcp   FIN-WAIT-1 0      106525      10.0.1.2:49268     10.0.1.1:10103 timer:(persist,7.097ms,6) ino:0 sk:2001 cgroup:unreachable:1 <--
#  ts sack cubic wscale:7,7 rto:201 backoff:6 rtt:0.869/0.533 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:27 ssthresh:27 bytes_sent:393020 bytes_acked:24577 bytes_received:137088 segs_out:302 segs_in:123 data_segs_out:288 data_segs_in:119 send 359917146bps lastsnd:5767 lastrcv:25623 lastack:19079 pacing_rate 431900568bps delivery_rate 59303752bps delivered:20 busy:62679ms rcv_rtt:1.109 rcv_space:14480 rcv_ssthresh:64088 notsent:106525 minrtt:0.133 snd_wnd:64128 rcv_wnd:64128 tcp-ulp-mptcp flags:Mmec token:0000(id:0)/555ed153(id:0) seq:55bfcd4bdade8611 sfseq:1f781 ssnoff:1436cea2 maplen:2000
# mptcp FIN-WAIT-2 0      0           10.0.1.2:49268     10.0.1.1:10103 timer:(keepalive,57sec,0) ino:0 sk:3001 cgroup:unreachable:1 ---
#  subflows_max:2 fallback remote_key token:555ed153 write_seq:14404919583157472547 snd_una:14404919583157472547 rcv_nxt:6178882939453875729 csum_enabled:1 retransmits:1 bytes_sent:131100 bytes_received:137088 bytes_acked:122880 last_data_sent:62464 last_data_recv:25626 last_ack_recv:62681                                                                                                                                                                                                                                                                                                                              
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       42                 0.0
# TcpOutSegs                      302                0.0
# TcpExtOutOfWindowIcmps          185                0.0
# TcpExtDelayedACKLost            17                 0.0
# TcpExtTCPPureAcks               3                  0.0
# TcpExtTCPDSACKOldSent           17                 0.0
# TcpExtTCPOrigDataSent           19                 0.0
# TcpExtTCPHystartTrainDetect     1                  0.0
# TcpExtTCPHystartTrainCwnd       27                 0.0
# TcpExtTCPDelivered              20                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
#       Info: 5 corrupted pkts
#       syn                                 [ OK ]
#       synack                              [ OK ]
#       ack                                 [ OK ]
#       sum                                 [ OK ]
#       csum                                [ OK ]
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       rtx                                 [ OK ]
#       rstrx                               [ OK ]
#       itx                                 [ OK ]
#       infirx                              [FAIL] got 0 infinite map[s] RX expected 1
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       Info: invert

Even with a non debug kernel config (rarer):

# 104 Infinite map
#       Info: Test file (size 128 KB) for client
#       Info: Test file (size 128 KB) for server
# copyfd_io_poll: poll timed out (events: POLLIN 1, POLLOUT 0)
# [FAIL] client exit code 124, server 0
# Server ns stats
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       21                 0.0
# TcpOutSegs                      100                0.0
# TcpRetransSegs                  16                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             10                 0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPOrigDataSent           96                 0.0
# TcpExtTCPDelivered              99                 0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            7                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# Client ns stats
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       41                 0.0
# TcpOutSegs                      309                0.0
# TcpExtOutOfWindowIcmps          190                0.0
# TcpExtDelayedACKLost            16                 0.0
# TcpExtTCPPureAcks               3                  0.0
# TcpExtTCPDSACKOldSent           16                 0.0
# TcpExtTCPOrigDataSent           19                 0.0
# TcpExtTCPDelivered              20                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
# 
# netns ns1-6638776a-c1Nqd3 socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q     Local Address:Port       Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
# tcp   ESTAB      0      8192   [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:33450 timer:(on,6.092ms,0) ino:0 sk:1 cgroup:unreachable:1 <->
#  ts sack cubic wscale:7,7 rto:22143 rtt:3141.65/4750.11 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:58 bytes_sent:149760 bytes_retrans:20096 bytes_acked:121472 bytes_received:24576 segs_out:115 segs_in:33 data_segs_out:112 data_segs_in:19 send 213860bps lastsnd:16051 lastrcv:60956 lastack:22707 pacing_rate 427712bps delivery_rate 4976bps delivered:100 busy:59852ms unacked:6 retrans:0/16 dsack_dups:9 rcv_space:14600 rcv_ssthresh:64076 minrtt:0.022 snd_wnd:179584 rcv_wnd:64128 rehash:9 tcp-ulp-mptcp flags:Mec token:0000(id:0)/dfa4c954(id:0) seq:6b9c133892472e79 sfseq:4001 ssnoff:61f8f942 maplen:2000
# mptcp FIN-WAIT-1 0      0      [::ffff:10.0.1.1]:10103 [::ffff:10.0.1.2]:33450 timer:(keepalive,29sec,0) ino:0 sk:2 cgroup:unreachable:1 ---
#  subflows_max:2 remote_key token:dfa4c954 write_seq:16024144962807916210 snd_una:16024144962807793301 rcv_nxt:7754093792118394489 csum_enabled:1 bytes_retrans:57344 bytes_sent:72320 bytes_received:24576 bytes_acked:8192 subflows_total:1 last_data_sent:60766 last_data_recv:60975 last_ack_recv:60975                                                                                                                                                                                                                                                                                                                        
# TcpPassiveOpens                 1                  0.0
# TcpInSegs                       21                 0.0
# TcpOutSegs                      100                0.0
# TcpRetransSegs                  16                 0.0
# TcpExtTCPPureAcks               13                 0.0
# TcpExtTCPLossUndo               9                  0.0
# TcpExtTCPTimeouts               9                  0.0
# TcpExtTCPLossProbes             10                 0.0
# TcpExtTCPBacklogCoalesce        1                  0.0
# TcpExtTCPDSACKRecv              9                  0.0
# TcpExtTCPSackShiftFallback      9                  0.0
# TcpExtTCPOrigDataSent           96                 0.0
# TcpExtTCPDelivered              99                 0.0
# TcpExtTcpTimeoutRehash          9                  0.0
# TcpExtTCPDSACKRecvSegs          9                  0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            7                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# 
# netns ns2-6638776a-c1Nqd3 socket stat for 10103:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q Local Address:Port  Peer Address:Port                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
# tcp   FIN-WAIT-1 0      106525      10.0.1.2:33450     10.0.1.1:10103 timer:(persist,10sec,6) ino:0 sk:1001 cgroup:unreachable:1 <--
#  ts sack cubic wscale:7,7 rto:201 backoff:6 rtt:0.046/0.018 ato:40 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:28 bytes_sent:402608 bytes_acked:24577 bytes_received:129664 segs_out:309 segs_in:116 data_segs_out:295 data_segs_in:112 send 7051130435bps lastsnd:2846 lastrcv:22606 lastack:16158 pacing_rate 14064043360bps delivery_rate 1579636360bps delivered:20 busy:61063ms rcv_rtt:463.306 rcv_space:14480 rcv_ssthresh:195928 notsent:106525 minrtt:0.009 snd_wnd:64128 rcv_wnd:195968 tcp-ulp-mptcp flags:Mmec token:0000(id:0)/e594815e(id:0) seq:de6132f1b187c115 sfseq:1da81 ssnoff:6c82c169 maplen:2000
# mptcp FIN-WAIT-2 0      0           10.0.1.2:33450     10.0.1.1:10103 timer:(keepalive,59sec,0) ino:0 sk:1002 cgroup:unreachable:1 ---
#  subflows_max:2 fallback remote_key token:e594815e write_seq:7754093792118501014 snd_una:7754093792118501014 rcv_nxt:16024144962807914773 csum_enabled:1 bytes_sent:131100 bytes_received:129664 bytes_acked:73728 last_data_sent:61059 last_data_recv:22606 last_ack_recv:61063                                                                                                                                                                                                                                                                                                                                         
# TcpActiveOpens                  1                  0.0
# TcpInSegs                       41                 0.0
# TcpOutSegs                      309                0.0
# TcpExtOutOfWindowIcmps          190                0.0
# TcpExtDelayedACKLost            16                 0.0
# TcpExtTCPPureAcks               3                  0.0
# TcpExtTCPDSACKOldSent           16                 0.0
# TcpExtTCPOrigDataSent           19                 0.0
# TcpExtTCPDelivered              20                 0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtInfiniteMapTx           1                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtRcvWndShared            1                  0.0
#       Info: 5 corrupted pkts
#       syn                                 [ OK ]
#       synack                              [ OK ]
#       ack                                 [ OK ]
#       sum                                 [ OK ]
#       csum                                [ OK ]
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       rtx                                 [ OK ]
#       rstrx                               [ OK ]
#       itx                                 [ OK ]
#       infirx                              [FAIL] got 0 infinite map[s] RX expected 1
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       Info: invert

https://netdev-3.bots.linux.dev/vmksft-mptcp/results/582921/1-mptcp-join-sh/stdout

matttbe commented 3 months ago

It is maybe not linked, but MP_FAIL MP_RST is unstable: not on our side or NIPA, but on LKFT side:

# 105 MP_FAIL MP_RST
#       Info: Test file (size 1024 KB) for client
#       Info: Test file (size 1024 KB) for server
# nstat: history is aged out, resetting
# nstat: history is aged out, resetting
# write: Resource temporarily unavailable
# copyfd_io_poll: poll timed out (events: POLLIN 0, POLLOUT 4)
# nstat: history is aged out, resetting
# nstat: history is aged out, resetting
# [FAIL] client exit code 111, server 0
# Server ns stats
# TcpPassiveOpens                 2                  0.0
# TcpEstabResets                  1                  0.0
# TcpInSegs                       236                0.0
# TcpOutSegs                      387                0.0
# TcpOutRsts                      1                  0.0
# TcpExtDelayedACKs               5                  0.0
# TcpExtTCPPureAcks               170                0.0
# TcpExtTCPLossProbes             2                  0.0
# TcpExtTCPRcvCoalesce            42                 0.0
# TcpExtTCPOrigDataSent           337                0.0
# TcpExtTCPDelivered              337                0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            155                0.0
# MPTcpExtMPJoinSynRx             1                  0.0
# MPTcpExtMPJoinAckRx             1                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtOFOQueueTail            5                  0.0
# MPTcpExtOFOQueue                6                  0.0
# MPTcpExtOFOMerge                3                  0.0
# MPTcpExtDuplicateData           8                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPRstTx                 1                  0.0
# MPTcpExtSndWndShared            147                0.0
# MPTcpExtRcvWndShared            18                 0.0
# Client ns stats
# TcpActiveOpens                  2                  0.0
# TcpEstabResets                  1                  0.0
# TcpInSegs                       296                0.0
# TcpOutSegs                      292                0.0
# TcpExtPruneCalled               9                  0.0
# TcpExtDelayedACKs               138                0.0
# TcpExtTCPPureAcks               47                 0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPRcvCoalesce            2                  0.0
# TcpExtTCPToZeroWindowAdv        145                0.0
# TcpExtTCPWantZeroWindowAdv      14                 0.0
# TcpExtTCPOrigDataSent           120                0.0
# TcpExtTCPDelivered              121                0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtMPJoinSynAckRx          1                  0.0
# MPTcpExtDuplicateData           40                 0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtMPRstRx                 1                  0.0
# MPTcpExtRcvPruned               187                0.0
# MPTcpExtRcvWndShared            161                0.0
# 
# netns ns1-68845c7e-SwLcTs socket stat for 10104:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State    Recv-Q Send-Q     Local Address:Port       Peer Address:Port Process                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
# tcp   ESTAB    0      64     [::ffff:10.0.1.1]:10104 [::ffff:10.0.1.2]:55762 timer:(on,290ms,0) ino:0 sk:1 cgroup:unreachable:6fb <->
#    ts sack reno wscale:7,7 rto:293 rtt:92.865/41.324 ato:44 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:82 bytes_sent:259838 bytes_acked:259774 bytes_received:155392 segs_out:383 segs_in:284 data_segs_out:338 data_segs_in:114 send 10228698bps lastsnd:3 lastrcv:32948 lastack:135 pacing_rate 20457392bps delivery_rate 149264bps delivered:338 busy:15422ms rwnd_limited:24ms(0.2%) sndbuf_limited:13851ms(89.8%) unacked:1 rcv_rtt:397.242 rcv_space:14600 rcv_ssthresh:64076 minrtt:5.722 snd_wnd:64 tcp-ulp-mptcp flags:Mec token:0000(id:0)/d89e6ca(id:0) seq:607429828340e720 sfseq:1f981 ssnoff:8ec6588a maplen:6580
# mptcp LAST-ACK 0      0      [::ffff:10.0.1.1]:10104 [::ffff:10.0.1.2]:55762 timer:(keepalive,59sec,0) ino:0 sk:2 cgroup:unreachable:6fb ---
#    subflows:1 subflows_max:1 remote_key token:d89e6ca write_seq:60aea59871f2e1da snd_una:60aea59871eaac9b rcv_nxt:6074298283414ca1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
# TcpPassiveOpens                 2                  0.0
# TcpEstabResets                  1                  0.0
# TcpInSegs                       236                0.0
# TcpOutSegs                      387                0.0
# TcpOutRsts                      1                  0.0
# TcpExtDelayedACKs               5                  0.0
# TcpExtTCPPureAcks               170                0.0
# TcpExtTCPLossProbes             2                  0.0
# TcpExtTCPRcvCoalesce            42                 0.0
# TcpExtTCPOrigDataSent           337                0.0
# TcpExtTCPDelivered              337                0.0
# MPTcpExtMPCapableSYNRX          1                  0.0
# MPTcpExtMPCapableACKRX          1                  0.0
# MPTcpExtMPTCPRetrans            155                0.0
# MPTcpExtMPJoinSynRx             1                  0.0
# MPTcpExtMPJoinAckRx             1                  0.0
# MPTcpExtDataCsumErr             1                  0.0
# MPTcpExtOFOQueueTail            5                  0.0
# MPTcpExtOFOQueue                6                  0.0
# MPTcpExtOFOMerge                3                  0.0
# MPTcpExtDuplicateData           8                  0.0
# MPTcpExtMPFailTx                1                  0.0
# MPTcpExtMPRstTx                 1                  0.0
# MPTcpExtSndWndShared            147                0.0
# MPTcpExtRcvWndShared            18                 0.0
# 
# netns ns2-68845c7e-SwLcTs socket stat for 10104:
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Failed to find cgroup2 mount
# Netid State      Recv-Q Send-Q Local Address:Port  Peer Address:Port Process                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
# tcp   ESTAB      17920  0           10.0.1.2:55762     10.0.1.1:10104 ino:0 sk:1001 cgroup:unreachable:6fb <->
#    ts sack reno wscale:7,7 rto:1031 rtt:443.443/55.781 ato:128 mss:1448 pmtu:1500 rcvmss:1420 advmss:1448 cwnd:104 bytes_sent:155392 bytes_acked:155393 bytes_received:259838 segs_out:284 segs_in:384 data_segs_out:114 data_segs_in:338 send 2716778bps lastsnd:33216 lastrcv:45 lastack:45 pacing_rate 5433552bps delivery_rate 626880bps delivered:115 busy:1346ms rwnd_limited:166ms(12.3%) rcv_rtt:156.689 rcv_space:14480 rcv_ssthresh:64088 minrtt:7.099 snd_wnd:64128 tcp-ulp-mptcp flags:Mmecv token:0000(id:0)/23631e7a(id:0) seq:60aea59871eaa183 sfseq:3a5e7 ssnoff:62d4f68d maplen:b58
# mptcp FIN-WAIT-2 158046 0           10.0.1.2:55762     10.0.1.1:10104 timer:(keepalive,25sec,0) ino:0 sk:1002 cgroup:unreachable:6fb ---
#    subflows_max:1 remote_key token:23631e7a write_seq:6074298283414ca1 snd_una:6074298283414ca1 rcv_nxt:60aea59871eaac9b                                                                                                                                                                                                                                                                                                                                                                                                                                                  
# TcpActiveOpens                  2                  0.0
# TcpEstabResets                  1                  0.0
# TcpInSegs                       296                0.0
# TcpOutSegs                      292                0.0
# TcpExtPruneCalled               9                  0.0
# TcpExtDelayedACKs               138                0.0
# TcpExtTCPPureAcks               47                 0.0
# TcpExtTCPLossProbes             1                  0.0
# TcpExtTCPRcvCoalesce            2                  0.0
# TcpExtTCPToZeroWindowAdv        145                0.0
# TcpExtTCPWantZeroWindowAdv      14                 0.0
# TcpExtTCPOrigDataSent           120                0.0
# TcpExtTCPDelivered              121                0.0
# MPTcpExtMPCapableSYNTX          1                  0.0
# MPTcpExtMPCapableSYNACKRX       1                  0.0
# MPTcpExtMPJoinSynAckRx          1                  0.0
# MPTcpExtDuplicateData           40                 0.0
# MPTcpExtMPFailRx                1                  0.0
# MPTcpExtMPRstRx                 1                  0.0
# MPTcpExtRcvPruned               187                0.0
# MPTcpExtRcvWndShared            161                0.0
#       Info: 1 corrupted pkts
#       syn                                 [ OK ]
#       synack                              [ OK ]
#       ack                                 [ OK ]
#       sum                                 [ OK ]
#       csum                                [ OK ]
#       ftx                                 [ OK ]
#       failrx                              [ OK ]
#       rtx                                 [ OK ]
#       rstrx                               [ OK ]
#       itx                                 [ OK ]
#       infirx                              [ OK ]

Log: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240517/testrun/23977459/suite/kselftest-net-mptcp/test/net_mptcp_mptcp_join_sh_-_mptcp_join_MP_FAIL_MP_RST/log History: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240517/testrun/23977459/suite/kselftest-net-mptcp/test/net_mptcp_mptcp_join_sh_-_mptcp_join_MP_FAIL_MP_RST/history/