Product: Red Hat Enterprise Linux 7 https://bugzilla.redhat.com/show_bug.cgi?id=922201
Bug ID: 922201 Summary: rmmod confused by built-ins Product: Red Hat Enterprise Linux 7 Version: 7.0 Component: kmod Severity: medium Priority: medium Assignee: kay@redhat.com Reporter: bmr@redhat.com CC: gansalmon@Gmail.com, itamar@ispbrasil.com.br, jonathan@jonmasters.org, kernel-maint@redhat.com, kmod-maint@lists.fedoraproject.org, madhu.chinakonda@gmail.com, msivak@redhat.com Depends On: 922187
+++ This bug was initially created as a clone of Bug #922187 +++
Description of problem: Attempting to rmmod something that's not actually built as a module now gives a slightly confusing error:
# rmmod loop libkmod: kmod_module_get_holders: could not open '/sys/module/loop/holders': No such file or directory Error: Module loop is in use
Previously rmmod from module-init-tools gave a still vague but better "not found" message:
# rmmod ext2 ERROR: Module ext2 does not exist in /proc/modules
Version-Release number of selected component (if applicable): kmod-*
How reproducible: 100%
Steps to Reproduce: 1. compile something that can be built as a module as a built-in 2. rmmod $thing
Actual results: # rmmod loop libkmod: kmod_module_get_holders: could not open '/sys/module/loop/holders': No such file or directory Error: Module loop is in use
Which isn't really true: it's not in use, it's simply built in to vmlinuz so unloading makes no sense.
Expected results: modprobe does the right thing:
# modprobe -r loop FATAL: Module loop is builtin.
Additional info: I know rmmod is the low-level tool and users should be using modprobe -r (or just not messing with this in the first place.. :) but knowledge of modprobe to load and rmmod to unload seems much more widespread among admins and the current behaviour looks at first like a kernel bug (if you didn't realise that there are paths directories missing in /sys/modules/$thing and the module name isn't present in /proc/modules you might think some refcount was broken etc.).
--- Additional comment from Bryn M. Reeves on 2013-03-15 13:12:04 EDT ---
Error is slightly different from 0:12-1.fc18 but same basic problem:
# rmmod loop rmmod: ERROR: could not open '/sys/module/loop/holders': No such file or directory rmmod: ERROR: Module loop is in use
Product: Red Hat Enterprise Linux 7 https://bugzilla.redhat.com/show_bug.cgi?id=922201
Josh Boyer jwboyer@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On|922187 |
Product: Red Hat Enterprise Linux 7 https://bugzilla.redhat.com/show_bug.cgi?id=922201
Josh Boyer jwboyer@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |922187
Product: Red Hat Enterprise Linux 7 https://bugzilla.redhat.com/show_bug.cgi?id=922201
Josh Boyer jwboyer@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED Fixed In Version| |kmod-12-3.fc19
--- Comment #2 from Josh Boyer jwboyer@redhat.com --- Fixed in Fedora 19. Should get included with the next sync.
Product: Red Hat Enterprise Linux 7 https://bugzilla.redhat.com/show_bug.cgi?id=922201
Bug 922201 depends on bug 922187, which changed state.
Bug 922187 Summary: rmmod confused by built-ins https://bugzilla.redhat.com/show_bug.cgi?id=922187
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=922201
Ondrej Hudlicky ohudlick@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|kay@redhat.com |vpavlin@redhat.com Status|MODIFIED |ON_QA
https://bugzilla.redhat.com/show_bug.cgi?id=922201
CAI Qian caiqian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |caiqian@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=922201
Petr Šplíchal psplicha@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- QA Contact| |kernel-qe@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=922201
CAI Qian caiqian@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- QA Contact|kernel-qe@redhat.com |cxie@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=922201
Ludek Smid lsmid@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |CURRENTRELEASE Last Closed| |2014-06-16 06:21:10
--- Comment #5 from Ludek Smid lsmid@redhat.com --- This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
kmod-maint@lists.fedoraproject.org