Bug 1951176 - systemd-modules-load "Failed to find module 'msr'"
Summary: systemd-modules-load "Failed to find module 'msr'"
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kmod
Version: 34
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: kmod development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-19 17:56 UTC by Sampson Fung
Modified: 2022-06-07 22:57 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-07 22:57:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sampson Fung 2021-04-19 17:56:49 UTC
Description of problem:
With Fedora Linux Silverblue 34, in journal, systemd-modules-load complains for "Failed to find module 'msr'"

Version-Release number of selected component (if applicable):
systemd-248-2.fc34.x86_64
kernel-5.11.12-300.fc34.x86_64


How reproducible:
100%

Steps to Reproduce:
1.  Reboot
2.  journalctl -b -u systemd-modules-load
3.  

Actual results:
-- Journal begins at Sun 2021-03-14 13:52:59 HKT, ends at Tue 2021-04-20 01:55:30 HKT. --
Apr 20 01:24:40 fedora systemd-modules-load[238]: Inserted module 'fuse'
Apr 20 01:24:40 fedora systemd-modules-load[238]: Failed to find module 'msr'
Apr 20 01:24:43 fedora systemd[1]: systemd-modules-load.service: Deactivated successfully.
Apr 20 01:24:43 fedora systemd[1]: Stopped Load Kernel Modules.
Apr 20 01:24:46 amdf systemd-modules-load[562]: Module 'msr' is built in
Apr 20 01:24:46 amdf systemd-modules-load[562]: Inserted module 'pkcs8_key_parser'
Apr 20 01:24:46 amdf systemd[1]: Finished Load Kernel Modules.


Expected results:
No error

Additional info:

Comment 1 Zbigniew Jędrzejewski-Szmek 2021-05-07 11:21:42 UTC
/usr/lib/modules-load.d/fwupd-msr.conf lists 'msr'. systemd-modules-load.service tries to load
it and fails because it is currently built-in. We should be smart enough to figure this out
and silently do nothing.

Comment 2 Zbigniew Jędrzejewski-Szmek 2021-05-07 11:56:12 UTC
Hmm, this is strange. When executed in the real system, we correctly detect that the module is built-in:
$ systemd-modules-load /usr/lib/modules-load.d/fwupd-msr.conf
Module 'msr' is built in

But when executed in the initramfs, this doesn't work for some reason.
$ chroot /var/tmp/initrd
(chroot)# /usr/lib/systemd/systemd-modules-load /usr/lib/modules-load.d/fwupd-msr.conf 
Failed to find module 'msr'

/usr/lib/modules/5.12.0-198.fc34.x86_64/modules.builtin in the initrafms does list kernel/arch/x86/kernel/msr.ko.
But for some reason libkmod not not grok that.

$ grep -w msr /usr/lib/modules/5.12.0-198.fc34.x86_64/*
/usr/lib/modules/5.12.0-198.fc34.x86_64/modules.builtin:kernel/arch/x86/kernel/msr.ko
grep: /usr/lib/modules/5.12.0-198.fc34.x86_64/modules.builtin.modinfo: binary file matches
grep: /usr/lib/modules/5.12.0-198.fc34.x86_64/modules.symbols.bin: binary file matches
grep: /usr/lib/modules/5.12.0-198.fc34.x86_64/vmlinuz: binary file matches

$ grep -w msr /var/tmp/initrd/usr/lib/modules/5.12.0-198.fc34.x86_64/*
/var/tmp/initrd/usr/lib/modules/5.12.0-198.fc34.x86_64/modules.builtin:kernel/arch/x86/kernel/msr.ko

It seems that dracut is doing something wrong in constructing the module lists.
kmod maintainers, any advice?

Comment 3 Ben Cotton 2022-05-12 16:01:52 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Ben Cotton 2022-06-07 22:57:16 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.