Bug 2279920 - 'ss' tcp info does not print in iproute 6.7.0
Summary: 'ss' tcp info does not print in iproute 6.7.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iproute
Version: 40
Hardware: aarch64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Andrea Claudi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-09 20:08 UTC by Mat Martineau
Modified: 2024-06-07 05:00 UTC (History)
4 users (show)

Fixed In Version: iproute-6.7.0-2.fc40
Clone Of:
Environment:
Last Closed: 2024-06-07 05:00:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mat Martineau 2024-05-09 20:08:02 UTC
The iproute 6.7.0 release has a known bug where TCP info is not printed:

https://bugzilla.kernel.org/show_bug.cgi?id=218372

This is causing unit test failures for MPTCP kernel tests on Fedora 40. Have confirmed on both aarch64 and x86_64.


There is an upstream fix available to cherry-pick:

https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=f22c49730c3691c25a1147081363eb35aa9d1048


Reproducible: Always

Steps to Reproduce:
1. Make sure at least one TCP connection is established (for example, open an ssh connection)
2. Run "ss -it"
3. Run "ss -t"

Actual Results:  
Output is identical for both "ss" commands (although Recv-Q and Send-Q numbers may vary if the sockets are in use)

Expected Results:  
The "ss -it" command should show detailed TCP info for each socket, in addition to the basic data printed by "ss -t"

With the '-i' flag, 'ss' should print various data from TCP_INFO:

$ ./ss -it
State            Recv-Q             Send-Q                          Local Address:Port                          Peer Address:Port                                                                                                                                                         
ESTAB            0                  0                              172.16.149.128:46732                          10.10.10.10:ssh             
	 cubic rto:201 rtt:0.587/0.06 ato:40 mss:1460 pmtu:1500 rcvmss:892 advmss:1460 cwnd:10 bytes_sent:31465 bytes_acked:31466 bytes_received:56782 segs_out:1838 segs_in:1930 data_segs_out:800 data_segs_in:1130 send 199Mbps lastsnd:108892 lastrcv:108895 lastack:108891 pacing_rate 398Mbps delivery_rate 58.4Mbps delivered:801 app_limited busy:639ms rcv_rtt:182607 rcv_space:32166 rcv_ssthresh:68132 minrtt:0.571 snd_wnd:64240 rcv_wnd:67792
ESTAB            0                  0                              172.16.149.128:38900                          10.10.10.10:ssh             
	 cubic rto:201 rtt:0.573/0.072 ato:40 mss:1460 pmtu:1500 rcvmss:884 advmss:1460 cwnd:10 bytes_sent:10749 bytes_acked:10750 bytes_received:16498 segs_out:468 segs_in:509 data_segs_out:228 data_segs_in:280 send 204Mbps lastsnd:3398601 lastrcv:3398602 lastack:3398600 pacing_rate 408Mbps delivery_rate 58.1Mbps delivered:229 app_limited busy:208ms rcv_space:14600 rcv_ssthresh:31820 minrtt:0.554 snd_wnd:64240 rcv_wnd:31366

Instead, the upstream 6.7.0 tagged code (and the binaries packaged in iproute-6.7.0-1.fc40) omits the TCP info:

$ ss -it
State            Recv-Q             Send-Q                          Local Address:Port                          Peer Address:Port            
ESTAB            0                  0                              172.16.149.128:46732                          10.70.32.36:ssh             
ESTAB            0                  0                              172.16.149.128:38900                          10.70.32.36:ssh

Comment 1 Matthieu Baerts 2024-05-10 07:38:03 UTC
Hello,

I confirm this issue with the upstream v6.7.0 version.

Note that this is fixed in the upstream v6.8.0 version.

Instead of the revert -- which has been re-reverted soon after -- it might be better to take the fix from upstream:

https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=87d804ca0854b09c07872e9fd6036bf5d3e0cc85

That what has been done on Debian side, when the v6.7.0 was used:

https://salsa.debian.org/kernel-team/iproute2/-/commit/14cfd95e598ba712c9000a5212f57c8282223c19

Cheers,
Matt

Comment 2 Mat Martineau 2024-05-10 17:16:44 UTC
Thanks Matthieu!

Important to point out that I was too limited in listing the consequences of this bug, it affects several other socket types. To quote from Matthieu's commit message:

> Here is a quick list of options that were no longer displayed if '-p' /
> '--processes' was not set:
> 
> - AF_INET(6):
>   -o, --options
>   -e, --extended
>   --tos
>   --cgroup
>   --inet-sockopt
>   -m, --memory
>   -i, --info
> 
> - AF_PACKET:
>   -e, --extended
> 
> - AF_XDP:
>   -e, --extended
> 
> - AF_UNIX:
>   -m, --memory
>   -e, --extended
> 
> - TIPC:
>   --tipcinfo

Comment 3 Fedora Update System 2024-06-02 08:31:53 UTC
FEDORA-2024-39dee99b5c (iproute-6.7.0-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-39dee99b5c

Comment 4 Fedora Update System 2024-06-03 04:14:56 UTC
FEDORA-2024-39dee99b5c has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-39dee99b5c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-39dee99b5c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-06-07 05:00:17 UTC
FEDORA-2024-39dee99b5c (iproute-6.7.0-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.