Bug 193456 - modprobe cannot remove modules that have been renamed
Summary: modprobe cannot remove modules that have been renamed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: module-init-tools
Version: 4.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jon Masters
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-29 05:30 UTC by Brian Carp
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-22 16:12:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Brian Carp 2006-05-29 05:30:31 UTC
Description of problem: If you rename a module while it is being inserted into
the kernel, a subsequent call to 'modprobe -r' will fail with a FATAL error,
although the module can be removed successfully under its new name with rmmod. 
This is also relevant in modprobe.conf with 'install' and 'remove' commands.

How reproducible: Always

Steps to Reproduce:
1. /sbin/modprobe -o some-alias some-module
2. /sbin/modprobe -r some-alias
3. /sbin/rmmod some-alias
  
Actual results: Step #2 fails with a FATAL error where step #3 succeeds.

Expected results: Step #2 should result in the same behavior as step #3.

Comment 3 Jon Masters 2006-10-12 22:28:59 UTC
I will add this to the TODO for upstream.

Comment 6 Jon Masters 2007-03-22 16:11:39 UTC
Actually, now I'm inclined to say this is *not* a bug.

modprobe -o is intended for module testing, temporarily renaming a module.
modprobe uses the modules.dep file for name tracking, so you end up having to
use rmmod directly if you rename the modules in this way - which actually will
fail in future since the key signature check will balk on the rename too.

Can you give me an example of a situation where this is causing a problem? other
than renaming on the command line?

Jon.



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