lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID:
 <AM0PR03MB5938EE1722EF2C75112B86F5B9B9A@AM0PR03MB5938.eurprd03.prod.outlook.com>
Date: Thu, 23 Nov 2023 07:42:07 +0000
From: Ivar Simensen <is@...arespons.no>
To: "mkubecek@...e.cz" <mkubecek@...e.cz>, "netdev@...r.kernel.org"
	<netdev@...r.kernel.org>
Subject: ethtool module info only reports hex info

Hi
I'm not sure if this is a conscious decision or a bug, but I discovered a change of behavior between version 5.4 an 5.16 according to get module info from a SFP Fiber connector: "ethtool -m ens5".

After upgrading a target from Ubuntu 18.04 to 22.04, I discovered that the ethtool just report a hex dump when I tried to verify my fiber SFP connectors. In 18.04 I got a report with ethtool. I have tried to upgrade from version 5.16 to 6.1 and 6.5, but it did not fix the issue. I then downgraded to version 5.4 and now it works again.

The expected result with "ethtool -m ens5" was to get a human readable report, and with "ethtool -m ens5 hex on" a hexdump.
I have tried with the flag "hex on/off" on 5.16, but the result is always hex dump. 
On version 5.4 this flag switches between hex dump and module info report as expected.

Best regards
Ivar Simensen

My target:
Ubuntu 22.04.3 LTS
Kernel 5.15.0-88-generic
Ethtool ver 1:5.16-1

Hex dump result with ethtool 5.16 (and the same with 6.1 and 6.5):
ledtkn2@...tkn2-23420231:~$ sudo ethtool -m ens5
Offset          Values
------          ------
0x0000:         02 04 07 04 14 40 02 12 00 01 05 01 1f 00 28 ff
0x0010:         00 00 00 00 43 4f 54 53 57 4f 52 4b 53 20 20 20
0x0020:         20 20 20 20 00 00 00 00 52 4a 33 47 45 58 44 44
0x0030:         50 4c 58 4c 43 52 41 55 30 30 30 30 05 1e 00 fe
0x0040:         10 14 00 00 42 30 35 34 41 41 48 52 20 20 20 20
0x0050:         20 20 20 20 32 33 30 37 32 35 20 20 68 70 08 6e
0x0060:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070:         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Expected result with ethtool 5.4:
ledtkn2@...tkn2-23420231:~$ sudo ethtool -m ens5
        Identifier                                : 0x02 (module soldered to motherboard)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x07 (LC)
        Transceiver codes                         : 0x04 0x14 0x40 0x02 0x12 0x00 0x01 0x05 0x00
        Transceiver type                          : Infiniband: 1X LX
        Transceiver type                          : SONET: SONET reach specifier bit 1
        Transceiver type                          : SONET: OC-48, long reach
        Transceiver type                          : SONET: OC-12, single mode, long reach
        Transceiver type                          : Ethernet: 1000BASE-LX
        Transceiver type                          : FC: long distance (L)
        Transceiver type                          : FC: Longwave laser (LC)
        Transceiver type                          : FC: Single Mode (SM)
        Transceiver type                          : FC: 200 MBytes/sec
        Transceiver type                          : FC: 100 MBytes/sec
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 3100MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 40km
        Length (SMF)                              : 25500m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : COTSWORKS
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : RJ3GEXDDPLXLCRAU
        Vendor rev                                : 0000
        Option values                             : 0x10 0x14
        Option                                    : RX_LOS implemented, inverted
        Option                                    : TX_DISABLE implemented
        Option                                    : Paging implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : B054AAHR
        Date code                                 : 230725
        Optical diagnostics support               : Yes
        Laser bias current                        : 28.404 mA
        Laser output power                        : 1.3464 mW / 1.29 dBm
        Receiver signal average optical power     : 0.0003 mW / -35.23 dBm
        Module temperature                        : 53.79 degrees C / 128.82 degrees F
        Module voltage                            : 3.2860 V
        Alarm/warning flags implemented           : No



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ