2003-02-10 00:04:36

by Ookhoi

[permalink] [raw]
Subject: 2.5.59 Oops with insmod aironet4500_proc

Hi,

When I try to insmod aironet4500_proc, I get an Oops. The driver
itself is buildin (pci).

Kernel (2.5.59) is build with gcc (GCC) 3.2.2 20030131 (Debian prerelease)

module-init-tools version 0.9.9

Is there more info I should provide?

Can this have something to do with my patch for aironet4500_core.c ?
(I don't think so, but still ..)


Unable to handle kernel paging request at virtual address a0c02ee7
printing eip:
c0125978
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0060:[<c0125978>] Not tainted
EFLAGS: 00010093
EIP is at __find_symbol+0x38/0x70
eax: 00000001 ebx: c02e2f05 ecx: c037c9a0 edx: 00000000
esi: a0c02ee7 edi: c88f06c1 ebp: 00000624 esp: c7681ec8
ds: 007b es: 007b ss: 0068
Process insmod (pid: 161, threadinfo=c7680000 task=c771f2c0)
Stack: c7680000 c88f06c1 c88fa260 c88e4780 c012627d c88f06c1 c7681ee8 00000001
00000010 c88f014c 00000021 0000006a c01264de c88e4780 00000010 c88f05dc
c88f06c1 c88fa260 00000000 c88f05dc c88d6000 c88e4780 00000007 000002d0
Call Trace:
[<c012627d>] resolve_symbol+0x2d/0x80
[<c01264de>] simplify_symbols+0xae/0x110
[<c0126c41>] load_module+0x461/0x880
[<c01270c9>] sys_init_module+0x69/0x1d0
[<c0109157>] syscall_call+0x7/0xb

Code: ac ae 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 85 c0 74 16
<6>note: insmod[161] exited with preempt_count 1


2003-02-10 01:43:18

by Rusty Russell

[permalink] [raw]
Subject: Re: 2.5.59 Oops with insmod aironet4500_proc

In message <20030210011418.O19693@humilis> you write:
> Hi,
>
> When I try to insmod aironet4500_proc, I get an Oops. The driver
> itself is buildin (pci).
>
> Kernel (2.5.59) is build with gcc (GCC) 3.2.2 20030131 (Debian prerelease)
>
> module-init-tools version 0.9.9
>
> Is there more info I should provide?

Looks like you need the following patch (or moreal equiv).

Hope this helps!
Rusty.

diff -Nru a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
--- a/include/asm-generic/vmlinux.lds.h Fri Feb 7 21:21:02 2003
+++ b/include/asm-generic/vmlinux.lds.h Fri Feb 7 21:21:02 2003
@@ -13,18 +13,18 @@
} \
\
/* Kernel symbol table: Normal symbols */ \
- __start___ksymtab = .; \
__ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \
+ __start___ksymtab = .; \
*(__ksymtab) \
+ __stop___ksymtab = .; \
} \
- __stop___ksymtab = .; \
\
/* Kernel symbol table: GPL-only symbols */ \
- __start___gpl_ksymtab = .; \
__gpl_ksymtab : AT(ADDR(__gpl_ksymtab) - LOAD_OFFSET) { \
+ __start___gpl_ksymtab = .; \
*(__gpl_ksymtab) \
+ __stop___gpl_ksymtab = .; \
} \
- __stop___gpl_ksymtab = .; \
\
/* Kernel symbol table: strings */ \
__ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \


--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

2003-02-10 21:04:55

by Ookhoi

[permalink] [raw]
Subject: Re: 2.5.59 Oops with insmod aironet4500_proc

Rusty Russell wrote (ao):
> In message <20030210011418.O19693@humilis> you write:
> > When I try to insmod aironet4500_proc, I get an Oops. The driver
> > itself is buildin (pci).
> >
> > Kernel (2.5.59) is build with gcc (GCC) 3.2.2 20030131 (Debian
> > prerelease)
> >
> > module-init-tools version 0.9.9
> >
> > Is there more info I should provide?
>
> Looks like you need the following patch (or moreal equiv).
>
> Hope this helps!
> Rusty.
>
> diff -Nru a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h

Hi Rusty,

Sorry for the delay. A pentium 133 compiles as fast as you would expect
it to.

Your patch fixes my oops-on-insmod. Of course you knew this already,
didn't you ;-)

Thank you.