public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.31: modules don't work at all
@ 2002-08-11 12:41 Michel Eyckmans (MCE)
  2002-08-12  0:54 ` Flanigan, Ryan
  2002-08-12  1:03 ` Andrew Rodland
  0 siblings, 2 replies; 18+ messages in thread
From: Michel Eyckmans (MCE) @ 2002-08-11 12:41 UTC (permalink / raw)
  To: linux-kernel


After upgrading from 2.5.30 to 2.5.31, nothing related to modules 
works for me. Insmod, rmmod, you name it. They all cause errors
along the line of: "QM_SYMBOLS: Bad Address". Any suggestions?

This is with the very latest modutils (2.4.19). These work fine 
with 2.5.30.

MCE

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: 2.5.31: modules don't work at all
@ 2002-08-12  2:33 Adam J. Richter
  2002-08-12  3:07 ` Skip Ford
  2002-08-12  3:09 ` Flanigan, Ryan
  0 siblings, 2 replies; 18+ messages in thread
From: Adam J. Richter @ 2002-08-12  2:33 UTC (permalink / raw)
  To: ryan.flanigan; +Cc: linux-kernel

Ryan Flanigan writes:
>>>>>> "Andrew" == Andrew Rodland <arodland@noln.com> writes:
>
>    Andrew> On Sun, 11 Aug 2002 14:41:36 +0200 "Michel Eyckmans (MCE)"
>    Andrew> <mce@pi.be> wrote:
>
>    >> After upgrading from 2.5.30 to 2.5.31, nothing related to
>    >> modules works for me. Insmod, rmmod, you name it. They all
>    >> cause errors along the line of: "QM_SYMBOLS: Bad Address". Any
>    >> suggestions?
>
>    Andrew> Ditto here.  Ryan: Yes, CONFIG_PREEMPT is set.
>
>try "unsetting" it.  (same problem on the 2.5.31 kernels where i had it set)

	I am also experiencing modules not working with CONFIG_PREEMPT
set, and deactivating CONFIG_PREEMPT works around the problem for me too.

	Ryan, thanks for suggesting that, as it would have taken me a
long time to narrow it down that far!

	It would help avoid duplication of effort if you could indicate
how along you are with this problem.  If you or someone else has nailed
the problem and is preparing a patch, then there is no point in anyone
else trying to duplicate that debugging effort.  On the other hand,
if you just noticed CONFIG_PREEMPT was the difference between your
configuration and that of someone else who was running 2.5.31 successfully
and are not actively debugging the problem, then I'll try to poke at it
some more.

	I already know that the error that trips insmod occurs at
in modules.c, line 831, when qm_symbols gets an error from copy_to_user():

        for (; i < mod->nsyms ; ++i, ++s, vals += 2) {
                len = strlen(s->name)+1;
                if (len > bufsize)
                        goto calc_space_needed;

here------>     if (copy_to_user(strings, s->name, len)
                    || __put_user(s->value, vals+0)
                    || __put_user(space, vals+1))
                        return -EFAULT;

                strings += len;
                bufsize -= len;
                space += len;
        }

	The values of strings and s->name are similar in 2.5.30+preempt
(works) and 2.5.31+preempt (does not work).  strings is 0x08______, and
s->name is 0xc0______.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-08-20 23:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-11 12:41 2.5.31: modules don't work at all Michel Eyckmans (MCE)
2002-08-12  0:54 ` Flanigan, Ryan
2002-08-12  1:03 ` Andrew Rodland
2002-08-12  1:11   ` Flanigan, Ryan
  -- strict thread matches above, loose matches on Subject: below --
2002-08-12  2:33 Adam J. Richter
2002-08-12  3:07 ` Skip Ford
2002-08-12  5:36   ` Andrew Morton
2002-08-12 17:22     ` Linus Torvalds
2002-08-12 17:52       ` Andrew Morton
2002-08-12 20:32         ` Linus Torvalds
2002-08-12 23:34           ` Andrew Morton
2002-08-12 23:45             ` Linus Torvalds
2002-08-13  0:32             ` Skip Ford
2002-08-13  1:31             ` Skip Ford
2002-08-13  0:09     ` Andrew Rodland
2002-08-13  0:13       ` Andrew Morton
2002-08-20 22:59     ` Ed Tomlinson
2002-08-12  3:09 ` Flanigan, Ryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox