[Bug 1093213] New: dracut: module firmware semantic gap
http://bugzilla.suse.com/show_bug.cgi?id=1093213 Bug ID: 1093213 Summary: dracut: module firmware semantic gap Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: lurodriguez@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The MODULE_FIRMWARE() macro extends the modinfo for a module to add required firmware. This is used by dract on /usr/lib/dracut/dracut-init.sh to iterate over modules and for modules which it detects are installed on initramfs, it only complains if the firmware is not present on /lib/firmware. for _fw in $(modinfo -k $kernel -F firmware $1 2>/dev/null); do This is also the mechanism currently upstream on dracut. However MODULE_FIRMWARE() is not used for certain firmware files where the driver constructs the name at runtime dynamically. This could mean a failure for drivers which miss their firmware and don't have a reprobe trigger of some sort. Many modules may simply fail if the firmware is not loaded early, as they have no reprobe. Unloading and loading can help but that is in no way user friendly. Its unclear exactly which modules this could fail for at this point as there is no way to check for this. This semantic gap was brought up recently in light of IMA's future possible use for relying on the modinfo set by MODULE_FIRMWARE() also for building the new future IMA firmware signing policies [0]. [0] http://lkml.kernel.org/r/20180514192853.GM27853@wotan.suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093213 http://bugzilla.suse.com/show_bug.cgi?id=1093213#c1 Luis Rodriguez <lurodriguez@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low CC| |daniel.molkentin@suse.com, | |hare@suse.com, | |jthumshirn@suse.com --- Comment #1 from Luis Rodriguez <lurodriguez@suse.com> --- Setting as P4 low priority due to the lack of an annotation of a actual real world driver and since this is a general long term architecture objective. Storage folks may have an ideal candidate driver in mind whereby the firmware name is constructed dynamically at run time and MODULE_FIRMWARE() is *not* used currently. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093213 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kernel-maintainers@forge.pr | |ovo.novell.com Assignee|bnc-team-screening@forge.pr |daniel.molkentin@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093213 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|daniel.molkentin@suse.com |dracut-maintainers@suse.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093213 http://bugzilla.suse.com/show_bug.cgi?id=1093213#c2 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lurodriguez@suse.com Flags| |needinfo?(lurodriguez@suse. | |com) --- Comment #2 from Daniel Molkentin <daniel.molkentin@suse.com> --- Hey Luis. As I am revisiting stale open issues I came across this one. On our end, we are finally tracking the latest dracut version again, but even that one is limited to the abilities of libkmod (albeit directly now, rather than indirectly). But obviously this doesn't change much if we cannot reconstruct the firmware names from module metadata. Has there been any progress on the kernel side in the meanwhile? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093213 http://bugzilla.suse.com/show_bug.cgi?id=1093213#c3 Daniel Molkentin <daniel.molkentin@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|dracut-maintainers@suse.de |lurodriguez@suse.com Summary|dracut: module firmware |kernel+dracut: module |semantic gap |firmware semantic gap --- Comment #3 from Daniel Molkentin <daniel.molkentin@suse.com> --- Hey Luis, I have discussed this with the team and we agree we can support an augmented version of MODULE_FIRMWARE() that e.g. contains wildcards. However, we cannot make wild guesses. I am assigning this issue back to you. Once the kernel has the required changes, I am happy to implement support in dracut. I'll stay on the issue to remain in the loop. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com