Bug 2257563 - inxi cpu mode deals badly with offline hyperthread cores
Summary: inxi cpu mode deals badly with offline hyperthread cores
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: inxi
Version: 39
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Vasiliy Glazov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-10 04:22 UTC by M. Schlegel
Modified: 2024-02-15 01:42 UTC (History)
1 user (show)

Fixed In Version: inxi-3.3.32-1.fc39 inxi-3.3.32-1.el9 inxi-3.3.32-1.fc38
Clone Of:
Environment:
Last Closed: 2024-02-10 01:26:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description M. Schlegel 2024-01-10 04:22:45 UTC
When "inxi -C" or any usage of inxi that includes the Cpu information is used on a system where hyperthreads are turned off by setting /sys/devices/system/cpu/smt/control to "off", the cpu information for those hyperthread cores show up as uninitialized values for those cores (example is a quad core Skylake):

$ inxi -C
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
CPU:
  Info: quad core model: Intel Core i7-6700HQ bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 835 min/max: 800/3500 cores: 1: 800 2: 800 3: 862 4: 880

Expected result:  inxi -C should show those as "offline" or at least not the uninit errors

Reproducible: Always

Steps to Reproduce:
1.Turn off hyperthreads by echoing "off" into /sys/devices/system/cpu/smt/control
2.Run "inxi -C"

Actual Results:  
Output listing contains a "Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857."  for each HT core that was set to offline, for a 4 core cpu this is seen:

inxi -C
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
Use of uninitialized value $value[0] in string ne at /usr/bin/inxi line 9857.
CPU:
  Info: quad core model: Intel Core i7-6700HQ bits: 64 type: MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 835 min/max: 800/3500 cores: 1: 800 2: 800 3: 862 4: 880

Expected Results:  
inxi -C
CPU:
  Info: quad core model: Intel Core i7-6700HQ bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 800 min/max: 800/3500 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800


version of inxi 3.3.31-00 (2023-10-31)

Comment 1 M. Schlegel 2024-01-10 04:25:11 UTC
Some people will disable HT to reduce the risk of some types of vulnerabilities so it would be preferred if inxi would deal with that case.

Comment 2 Vasiliy Glazov 2024-01-11 06:32:13 UTC
I passed report to upstream
https://codeberg.org/smxi/inxi/issues/296

Comment 3 Vasiliy Glazov 2024-01-15 07:31:30 UTC
Fixed by upstream.
Package will be updated after next release.

Comment 4 Fedora Update System 2024-02-06 10:55:07 UTC
FEDORA-2024-b2eaad908f (inxi-3.3.32-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b2eaad908f

Comment 5 Fedora Update System 2024-02-06 10:55:08 UTC
FEDORA-EPEL-2024-794dd38163 (inxi-3.3.32-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-794dd38163

Comment 6 Fedora Update System 2024-02-07 00:27:44 UTC
FEDORA-EPEL-2024-794dd38163 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-794dd38163

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

Comment 7 Fedora Update System 2024-02-07 01:14:54 UTC
FEDORA-2024-80f3ff0071 has been pushed to the Fedora 38 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-80f3ff0071`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-80f3ff0071

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

Comment 8 Fedora Update System 2024-02-07 01:29:13 UTC
FEDORA-2024-b2eaad908f has been pushed to the Fedora 39 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-b2eaad908f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b2eaad908f

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

Comment 9 Fedora Update System 2024-02-10 01:26:08 UTC
FEDORA-2024-b2eaad908f (inxi-3.3.32-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-02-14 01:24:16 UTC
FEDORA-EPEL-2024-794dd38163 (inxi-3.3.32-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2024-02-15 01:42:19 UTC
FEDORA-2024-80f3ff0071 (inxi-3.3.32-1.fc38) has been pushed to the Fedora 38 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.