New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
microcodeIntel: 20180312 -> 20180807 and iucode-tool: init at 2.3.1 #45101
Conversation
Success on x86_64-linux (full log) Attempted: microcodeIntel Partial log (click to expand)
|
Failure on aarch64-linux (full log) Attempted: microcodeIntel Partial log (click to expand)
|
mkdir -p $out kernel/x86/microcode | ||
mv microcode.bin kernel/x86/microcode/GenuineIntel.bin | ||
iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode{,-with-caveats}/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is intel-ucode-with-caveats?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arch Linux includes it (it's a relatively new addition to the microcode distribution) but the problem is that in order to safely apply them, various kernel patches must be in place. I don't know if they are, so I ripped it out again.
homepage = https://gitlab.com/iucode-tool/iucode-tool; | ||
license = licenses.gpl2; | ||
maintainers = with maintainers; [ peterhoeg ]; | ||
platforms = platforms.linux; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you restrict platforms to x86? The tool uses cpuid
which is processor specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Success on x86_64-linux (full log) Attempted: microcodeIntel Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: microcodeIntel Partial log (click to expand)
|
|
||
nativeBuildInputs = [ autoreconfHook ]; | ||
|
||
enableParallalBuilding = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: microcodeIntel Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: microcodeIntel Partial log (click to expand)
|
I think we should backport this to 18.03, as it contains microcode level fixes for some of the Spectre and Meltdown vulnerabilities. |
@Moredread good idea. I am working on it. |
Motivation for this change
Instead of using our vendored version of the microcode processing tool, use iucode-tool.
I can confirm that at least on one machine, the microcode as processed by this PR is successfully applied.
Cc: @fpletz @wkennington
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)