-
Notifications
You must be signed in to change notification settings - Fork 75
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
Bug: purging fips leads to unbootable system, crashes during removal #2805
Labels
bug
something isn't working
Comments
renanrodrigo
added a commit
that referenced
this issue
Oct 26, 2023
Now the downgrades are performed first, and then the kernel is removed. This way, initramfs runs the non-fips libraries and is able to generate data for the next boot. Fixes: #2805 Signed-off-by: Renan Rodrigo <[email protected]>
5 tasks
renanrodrigo
added a commit
that referenced
this issue
Oct 27, 2023
Now the downgrades are performed first, and then the kernel is removed. This way, initramfs runs the non-fips libraries and is able to generate data for the next boot. Fixes: #2805 Signed-off-by: Renan Rodrigo <[email protected]>
Fixed in #2812 in the release branch, will be ported to main after release |
renanrodrigo
added a commit
that referenced
this issue
Nov 16, 2023
Now the downgrades are performed first, and then the kernel is removed. This way, initramfs runs the non-fips libraries and is able to generate data for the next boot. Fixes: #2805 Signed-off-by: Renan Rodrigo <[email protected]>
lucasmoura
pushed a commit
that referenced
this issue
Nov 22, 2023
Now the downgrades are performed first, and then the kernel is removed. This way, initramfs runs the non-fips libraries and is able to generate data for the next boot. Fixes: #2805 Signed-off-by: Renan Rodrigo <[email protected]>
orndorffgrant
pushed a commit
that referenced
this issue
Jan 5, 2024
Now the downgrades are performed first, and then the kernel is removed. This way, initramfs runs the non-fips libraries and is able to generate data for the next boot. Fixes: #2805 Signed-off-by: Renan Rodrigo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the bug
Launch a multipass vm, focal. Note it booted into the generic kernel, not kvm like the lxd VMs. For some reason, and I didn't investigate why, the LXD VMs that boot into the kvm kernel by default don't exhibit this problem. But if you switch a LXD VM to use the generic kernel, and do these steps, it will also be affected.
Install fips, reboot.
tail journal logs, apt terminal in /var/log/apt/term.log
Disable fips with --purge. Notice how logs get full of crashes and errors, mostly because of libraries doing the fips selftest and failing. Even apt-get crashes.
This leads to an incomplete removal, in the sense that some steps are not done (I assume it's the package's postinst that fail), and the system won't boot, dropping you into an initramfs prompt.
I haven't fully troubleshooted this yet, but I suspect the fips disablement must be done in stages. At the very least, remove the hmac packages last, otherwise all selftests will fail like this:
From apt's terminal log:
And so on.
Expected behavior
No crashes during FIPS disablement/purge, and a bootable system afterwards.
Current behavior
System is unbootable, falling into an initramfs prompt.
To Reproduce
Please include details on how to reproduce the bug.
Launch a focal multipass vm, enable fips, reboot, disable fips with purge, observe crashes in logs. If you reboot at this stage, the VM won't come back.
System information:
Pro version 30 (SRU testing)
Additional context
Right after purging fips, if you regenerate the initramfs and grub, then the system is bootable:
The text was updated successfully, but these errors were encountered: