* problem with modules (modutils) and 2.5.31 kernel
@ 2002-08-21 2:25 moret
2002-08-21 4:50 ` Keith Owens
2002-08-21 7:44 ` Heinz Diehl
0 siblings, 2 replies; 4+ messages in thread
From: moret @ 2002-08-21 2:25 UTC (permalink / raw)
To: linux-kernel
I searched for, but could not find references to, a problem
I have with 2.5.31 and modutils. (2.5.31 running with Debian
distribution on a P3 laptop or on two different P4 workstations,
each with a somewhat different kernel configuration -- no further
details here, in case this is already a well-known problem.)
insmod, depmod, update-modules all fail with the message:
=> kernel: QM_SYMBOLS: Bad address
That message comes from the routine new_get_kernel_info (in modstat.c,
a part of the modutils package 2.4.19-3 under Debian), in response to
a call to query_module that is querying the kernel itself:
query_module(NULL, QM_SYMBOLS, syms, bufsize, &ret)
The return code is -1 (error) and errno is the code for EFAULT,
indicating a bad address for one of syms or ret.
Is the problem that the modutils version (2.4.19-3 from Debian
unstable, in either precompiled or locally built versions)
is too old for the 2.5.31 kernel? (I see references
to a forthcoming modutils 2.5, but could not locate it.)
Or is there a known problem with the kernel itself?
Sorry if this message is a bit naive. I do need the 2.5.31 kernel,
because the 2.4.19 (and earlier) kernels cannot correctly assign
IRQs and iomem addresses to my Dell machine (problems with handling
the 82801DB ICH4 controller resulting in extremely poor IDE disk
performance and incorrect USB handling), whereas the 2.5.31 kernel
has no problem there.
However, I need to use a couple of modules (they cannot be compiled
directly into the kernel) and so need to get around that problem
with modutils. Any pointers or patches appreciated!
Bernard Moret
--
Bernard M.E. Moret moret@cs.unm.edu http://www.cs.unm.edu/~moret
(505) 277-5699 (office) (505) 277-6927 (FAX) (505) 277-3112 (department)
Department of Computer Science, University of New Mexico, Albuquerque, NM 87131
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with modules (modutils) and 2.5.31 kernel
2002-08-21 2:25 problem with modules (modutils) and 2.5.31 kernel moret
@ 2002-08-21 4:50 ` Keith Owens
2002-08-21 18:16 ` Andrew Rodland
2002-08-21 7:44 ` Heinz Diehl
1 sibling, 1 reply; 4+ messages in thread
From: Keith Owens @ 2002-08-21 4:50 UTC (permalink / raw)
To: moret; +Cc: linux-kernel
On Tue, 20 Aug 2002 20:25:19 -0600,
moret@cs.unm.edu wrote:
>I searched for, but could not find references to, a problem
>I have with 2.5.31 and modutils.
> insmod, depmod, update-modules all fail with the message:
>
>=> kernel: QM_SYMBOLS: Bad address
Disable CONFIG_PREEMPT and rebuild the kernel.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with modules (modutils) and 2.5.31 kernel
2002-08-21 4:50 ` Keith Owens
@ 2002-08-21 18:16 ` Andrew Rodland
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Rodland @ 2002-08-21 18:16 UTC (permalink / raw)
To: moret; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
On Wed, 21 Aug 2002 14:50:17 +1000
Keith Owens <kaos@ocs.com.au> wrote:
> On Tue, 20 Aug 2002 20:25:19 -0600,
> moret@cs.unm.edu wrote:
> >I searched for, but could not find references to, a problem
> >I have with 2.5.31 and modutils.
> > insmod, depmod, update-modules all fail with the message:
> >
> >=> kernel: QM_SYMBOLS: Bad address
>
> Disable CONFIG_PREEMPT and rebuild the kernel.
or, as per a previous thread on the same issue, change line 181 of
arch/i386/mm/fault.c from:
if (preempt_count() || !mm)
to:
if (in_interrupt() || !mm)
and rebuild.
Sorry, no time to fool around with diff right now. Hope it was helpful.
--hobbs
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with modules (modutils) and 2.5.31 kernel
2002-08-21 2:25 problem with modules (modutils) and 2.5.31 kernel moret
2002-08-21 4:50 ` Keith Owens
@ 2002-08-21 7:44 ` Heinz Diehl
1 sibling, 0 replies; 4+ messages in thread
From: Heinz Diehl @ 2002-08-21 7:44 UTC (permalink / raw)
To: linux-kernel
On Tue Aug 20 2002, moret@cs.unm.edu wrote:
[2.5.31]
> insmod, depmod, update-modules all fail with the message:
>
> => kernel: QM_SYMBOLS: Bad address
Just a loud "me too" here.
--
# Heinz Diehl, 68259 Mannheim, Germany
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-08-21 18:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 2:25 problem with modules (modutils) and 2.5.31 kernel moret
2002-08-21 4:50 ` Keith Owens
2002-08-21 18:16 ` Andrew Rodland
2002-08-21 7:44 ` Heinz Diehl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox