#896926 needrestart: false positive: microcode warnings after CPU upgrade

#896926#5
Date:
2018-04-25 23:47:40 UTC
From:
To:
I recently moved a system to a different CPU.

I got lots of needrestart warnings about a pending processor microcode
upgrade but not even a reboot fixed the issue.

The reason is that the initramfs had not been updated yet so restarting
did nothing because the initramfs did not contain any uCode updates for
the new CPU, only the old one.

needrestart should not request a restart in this situation because it
will cause the new uCode to be loaded at boot and thus needrestart will
continue to request a reboot even though that doesn't do anything.

In addition to scanning installed microcode from the intel-microcode
package, I would suggest scanning each of the initramfs files with
iucode_tool (see the command-line below).

If the initramfs uCode is not present or is outdated compared to the
installed uCode, an initramfs rebuild could be suggested.

If no initramfs files are present, the reboot comparison could be done
between the installed and running uCode.

If initramfs files are present, the reboot comparison should be done
between the latest initramfs uCode revision and the running uCode.

Pending processor microcode upgrade!

Diagnostics:
  The currently running processor microcode revision is ... which is not the expected microcode revision ....

Restarting the system to load the new processor microcode will not be handled automatically, so you should consider rebooting. [Return]

$ /usr/sbin/iucode_tool -tr -Sl /boot/initrd.img-4.15.0-3-amd64
/usr/sbin/iucode_tool: system has processor(s) with signature ...
microcode bundle 1: /boot/initrd.img-4.15.0-3-amd64
selected microcodes:

#896926#10
Date:
2021-03-08 12:28:45 UTC
From:
To:
Hello,

the µCode-Check fails if there is no iucode-tool installed at all, which I would not expect. Without the tool, there can be no updates beside what the machine's BIOS provides and checking for that is out of scope for needrestart. I'd suggest to skip firmware processing completely if there's no iucode-tool installed.

:wq! PoC

#896926#15
Date:
2021-09-22 04:22:10 UTC
From:
To:
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order
List. Please do bear in mind that we are very much in  need of this
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com