liske / needrestart

Restart daemons after library updates.
GNU General Public License v2.0
426 stars 67 forks source link

"did not get available microcode version" on Threadripper PRO 3955WX #264

Closed isaiahfrantz closed 1 year ago

isaiahfrantz commented 1 year ago

I get this regularly when upgrading packages on fedora 37:

Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.                                                                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.====                                                                                                                                                                                                                     ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.============                                                                                                                                                                                                             ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=====================                                                                                                                                                                                                    ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==============================                                                                                                                                                                                           ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=======================================                                                                                                                                                                                  ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.================================================                                                                                                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=========================================================                                                                                                                                                                ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==================================================================                                                                                                                                                       ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.===========================================================================                                                                                                                                              ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.===================================================================================                                                                                                                                      ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.============================================================================================                                                                                                                             ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=====================================================================================================                                                                                                                    ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==============================================================================================================                                                                                                           ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=======================================================================================================================                                                                                                  ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.================================================================================================================================                                                                                         ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=========================================================================================================================================                                                                                ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==================================================================================================================================================                                                                       ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==========================================================================================================================================================                                                               ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.===================================================================================================================================================================                                                      ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.============================================================================================================================================================================                                             ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=====================================================================================================================================================================================                                    ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.==============================================================================================================================================================================================                           ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.=======================================================================================================================================================================================================                  ]
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.================================================================================================================================================================================================================         ]
Scanning processor microcode...                                                                                                                                                                                                                                                                                               
Scanning linux images...                                                                                                                                                                                                                                                                                                      

Running kernel seems to be up-to-date.

Failed to check for processor microcode upgrades.

No services need to be restarted.

No containers need to be restarted.

User sessions running outdated binaries:
 ifrantz1 @ user manager service: code-insiders[10100,10103,10109,10132,10680,10695,10773,10807,10829,10830,10832,10835,10848,10882,10898,10907,10911,10937,10944,10955,11056,674091], gnome-shell[2895]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Upgraded:
  code-insiders-1.75.0-1674539220.el7.x86_64                                                                                                                                                                                                                                                                                  

Complete!

top of needrestart -w -v:

❯ sudo needrestart -w -v
[main] eval /etc/needrestart/needrestart.conf
[main] needrestart v3.6
[main] running in root mode
[Core] Using UI 'NeedRestart::UI::stdio'...
[main] systemd detected
[ucode] using NeedRestart::uCode::AMD
[ucode] using NeedRestart::uCode::Intel
[uCode/AMD] #1 cpuid 0x00830f10  (/dev/cpu/1/cpuid)
[uCode/AMD] #1 cpuid 0x00830f10  (/proc/cpuinfo)
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.
[uCode/AMD] #1 running ucode 0x00000000
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 61.
[ucode] # did not get available microcode version
[uCode/Intel] #1 current microcode revision not found in /proc/cpuinfo: 
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 58.
[ucode] # did not get current microcode version
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 61.
[ucode] # did not get available microcode version
[uCode/AMD] #5 cpuid 0x00830f10  (/dev/cpu/5/cpuid)
[uCode/AMD] #5 cpuid 0x00830f10  (/proc/cpuinfo)
Use of uninitialized value in hex at /usr/share/perl5/vendor_perl/NeedRestart/uCode/AMD.pm line 175.
[uCode/AMD] #5 running ucode 0x00000000
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 61.
[ucode] # did not get available microcode version
[uCode/Intel] #5 current microcode revision not found in /proc/cpuinfo: 
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 58.
[ucode] # did not get current microcode version
Use of uninitialized value $processor in concatenation (.) or string at /usr/share/perl5/vendor_perl/NeedRestart/uCode.pm line 61.
[ucode] # did not get available microcode version
[uCode/AMD] #9 cpuid 0x00830f10  (/dev/cpu/9/cpuid)
[uCode/AMD] #9 cpuid 0x00830f10  (/proc/cpuinfo)

first core in cpuinfo:

❯ cat /proc/cpuinfo 
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 23
model       : 49
model name  : AMD Ryzen Threadripper PRO 3955WX 16-Cores
stepping    : 0
cpu MHz     : 3892.683
cache size  : 512 KB
physical id : 0
siblings    : 1
core id     : 0
cpu cores   : 1
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 16
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero wbnoinvd arat npt svm_lock nrip_save vmcb_clean flushbyasid decodeassists umip rdpid overflow_recov succor
bugs        : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2 spec_store_bypass retbleed
bogomips    : 7785.36
TLB size    : 3072 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 45 bits physical, 48 bits virtual
power management:

lscpu:

❯ lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         45 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  32
  On-line CPU(s) list:   0-31
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen Threadripper PRO 3955WX 16-Cores
    CPU family:          23
    Model:               49
    Thread(s) per core:  1
    Core(s) per socket:  1
    Socket(s):           32
    Stepping:            0
    BogoMIPS:            7785.36
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt ae
                         s xsave avx f16c rdrand hypervisor lahf_lm svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero wbnoinvd arat npt svm_lock nrip_save vmcb
                         _clean flushbyasid decodeassists umip rdpid overflow_recov succor
Virtualization features: 
  Virtualization:        AMD-V
  Hypervisor vendor:     VMware
  Virtualization type:   full
Caches (sum of all):     
  L1d:                   1 MiB (32 instances)
  L1i:                   1 MiB (32 instances)
  L2:                    16 MiB (32 instances)
  L3:                    512 MiB (32 instances)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-31
Vulnerabilities:         
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Mitigation; untrained return thunk; SMT disabled
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
  Srbds:                 Not affected
  Tsx async abort:       Not affected
liske commented 1 year ago

Looks like a duplicate of #249