Red Hat Bugzilla – Bug 335061
crash mod command does not search the same directories as modutils do
Last modified: 2008-07-24 15:33:20 EDT
Description of problem:
Crash does not search for modules in the same order as the modutils (depmod,
modprobe, insmod) do. It should find /lib/modules/<kernel>/updates before
finding /lib/modules/<kernel> files.
Version-Release number of selected component (if applicable):
How reproducible: every time
Place a loadable module into /lib/modules/<kernel>/updates/... that has the same
name as a standard module and modprobe it in. modinfo will then show it as
coming from the updates directory but mod -s <modulename> or mod -S in crash
will show the module in the standard directory. Crash is doing a "find" command
in /lib/modules/<kernel> and so finds the original file first.
Steps to Reproduce: (see above)
See attached path file for fix to kernel.c.
Created attachment 229141 [details]
Thanks for carrying this to the patch-submission point, I appreciate
I just spoke with Kimball Murray about this, without knowing that
you had already filed a bugzilla. Anyway, I suggested to him that
you join the firstname.lastname@example.org mailing list, and that you
post your findings and the patch there. Could you possibly do
that? I'll send you an invite now -- you can always quit later.
But it's worth at least keeping it in "digest" mode.
BTW, can you also confirm that this also applies to RHEL5?
I would think it should, but I wasn't even aware of the
existence of the "updates" directory.
I told Kimball I would submit it when I had a patch ready. I haven't tried RHEL5
yet, but I need to build that soon. I'll update this Bug when I know more.
I joined the mailing list, thanks.
The fix is included in upstream release 4.0-4.9.
- Fix for the "mod" command to search for module object files in the
/lib/modules/<release>/updates directory tree before looking
in /lib/modules/<release>. (email@example.com)
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
MODIFIED: CVS Tag: crash-4_0-5_0_0
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.