2004-11-23 22:16:22

by celeron

[permalink] [raw]
Subject: bug in mm/slab.c

Problem with chipset nforce in the boot
Kernel 2.6.9-final in archlinux ( http://www.archlinux.org ) but compiled by myself.

nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6111 Tue Jul 27
07:55:38 PDT 2004
kmem_cache_create: duplicate cache sgpool-8
------------[ cut here ]------------
kernel BUG at mm/slab.c:1442!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: scsi_mod i2c_amd756 i2c_algo_bit i2c_isa i2c_algo_pcf
w83781d i2c_sensor nvidia
CPU: 0
EIP: 0060:[<c0139a22>] Tainted: P VLI
EFLAGS: 00010202 (2.6.9-final)
EIP is at kmem_cache_create+0x3f2/0x560
eax: 0000002c ebx: cee8fdd0 ecx: c056b8cc edx: 00000286
esi: c046a7c6 edi: cfa9c343 ebp: cec41c60 esp: cdc6af34
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 1094, threadinfo=cdc6a000 task=cdcf0aa0)
Stack: c044d5dc cfa9c33a 00000020 00002000 cdc6af54 cec41c9c ffffffe0
c0000000
00000020 cfaa2dc0 00000000 cdc6a000 c049f4e0 cfa5e10a cfa9c33a
00000080
00000020 00002000 00000000 00000000 c049f4f8 cfaa3340 cfa5e009
b7fcd000
Call Trace:
[<cfa5e10a>] scsi_init_queue+0x4a/0xc0 [scsi_mod]
[<cfa5e009>] init_scsi+0x9/0xc0 [scsi_mod]
[<c012e7fa>] sys_init_module+0x18a/0x270
[<c01040b9>] sysenter_past_esp+0x52/0x71
Code: f4 e9 b6 fc ff ff 8b 44 24 38 c7 04 24 dc d5 44 c0 89 44 24 04 e8 5f
c7 fd ff b9 cc b8 56 c0 ff 05 cc b8 56 c0 0f 8e 2f 19 00 00 <0f> 0b a2 05
41 cf 44 c0 8b 0b 89 cb e9 dd fe ff ff 8b 47 34 c7
<6>eth0: link up, 10Mbps, half-duplex, lpa 0x0000
hdd: CHECK for good STATUS
spurious 8259A interrupt: IRQ7.


My System:

LSPCI
00:00.0 Host bridge: nVidia Corporation nForce CPU bridge (rev b2)
00:00.1 RAM memory: nVidia Corporation nForce 220/420 Memory Controller
(rev b2)
00:00.2 RAM memory: nVidia Corporation nForce 220/420 Memory Controller
(rev b2)
00:00.3 RAM memory: nVidia Corporation: Unknown device 01aa (rev b2)
00:01.0 ISA bridge: nVidia Corporation nForce ISA Bridge (rev c3)
00:01.1 SMBus: nVidia Corporation nForce PCI System Management (rev c1)
00:02.0 USB Controller: nVidia Corporation nForce USB Controller (rev c3)
00:03.0 USB Controller: nVidia Corporation nForce USB Controller (rev c3)
00:04.0 Ethernet controller: nVidia Corporation nForce Ethernet Controller
(rev c2)
00:05.0 Multimedia audio controller: nVidia Corporation: Unknown device
01b0 (rev c2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce Audio (rev c2)
00:08.0 PCI bridge: nVidia Corporation nForce PCI-to-PCI bridge (rev c2)
00:09.0 IDE interface: nVidia Corporation nForce IDE (rev c3)
00:1e.0 PCI bridge: nVidia Corporation nForce AGP to PCI Bridge (rev b2)
01:06.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
01:06.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
(rev 11)
01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
02:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2 -
nForce GPU] (rev b1)

CPUINFO
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(TM) XP 1600+
stepping : 2
cpu MHz : 1403.176
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips : 2768.89

MODULES
scsi_mod 69468 1 - Loading 0xcfa93000
i2c_amd756 4932 0 - Live 0xcfa68000
i2c_algo_bit 8584 0 - Live 0xcfa79000
i2c_isa 1728 0 - Live 0xcfa66000
i2c_algo_pcf 6020 0 - Live 0xcfa63000
w83781d 34544 2 - Live 0xcfa6f000
i2c_sensor 2944 1 w83781d, Live 0xcfa61000
nvidia 4811124 12 - Live 0xcff50000

SCSI
I dont have scsi drivers :(



-----------------------------------------
Con?ctate con Chile.com.
http://www.chile.com/accesogratis/



2004-11-23 23:02:40

by Lee Revell

[permalink] [raw]
Subject: Re: bug in mm/slab.c

On Tue, 2004-11-23 at 19:13 -0300, [email protected] wrote:
> Problem with chipset nforce in the boot
> Kernel 2.6.9-final in archlinux ( http://www.archlinux.org ) but compiled by myself.
>
> nvidia: module license 'NVIDIA' taints kernel.
> ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
> NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6111 Tue Jul 27
> 07:55:38 PDT 2004
> kmem_cache_create: duplicate cache sgpool-8
> ------------[ cut here ]------------
> kernel BUG at mm/slab.c:1442!


Not only do you have the nvidia module loaded, but it looks like the
nvidia module caused your oops.

Did you see the line about 'module license NVIDIA taints kernel'?
Google for what this means and you will understand why this bug report
is offtopic.

Lee


2004-11-23 23:54:51

by Andrew Morton

[permalink] [raw]
Subject: Re: bug in mm/slab.c


(This is 2.6.9)

<[email protected]> wrote:
>
> kmem_cache_create: duplicate cache sgpool-8

This is due to the scsi layer trying to create the "sgpool-8" cache during
`modprobe scsi_mod', but that cache already exists.

There have been a few reports of this, and I _think_ it has been fixed.
Could the scsi folks please confirm?



> ------------[ cut here ]------------
> kernel BUG at mm/slab.c:1442!
> invalid operand: 0000 [#1]
> PREEMPT
> Modules linked in: scsi_mod i2c_amd756 i2c_algo_bit i2c_isa i2c_algo_pcf
> w83781d i2c_sensor nvidia
> CPU: 0
> EIP: 0060:[<c0139a22>] Tainted: P VLI
> EFLAGS: 00010202 (2.6.9-final)
> EIP is at kmem_cache_create+0x3f2/0x560
> eax: 0000002c ebx: cee8fdd0 ecx: c056b8cc edx: 00000286
> esi: c046a7c6 edi: cfa9c343 ebp: cec41c60 esp: cdc6af34
> ds: 007b es: 007b ss: 0068
> Process modprobe (pid: 1094, threadinfo=cdc6a000 task=cdcf0aa0)
> Stack: c044d5dc cfa9c33a 00000020 00002000 cdc6af54 cec41c9c ffffffe0
> c0000000
> 00000020 cfaa2dc0 00000000 cdc6a000 c049f4e0 cfa5e10a cfa9c33a
> 00000080
> 00000020 00002000 00000000 00000000 c049f4f8 cfaa3340 cfa5e009
> b7fcd000
> Call Trace:
> [<cfa5e10a>] scsi_init_queue+0x4a/0xc0 [scsi_mod]
> [<cfa5e009>] init_scsi+0x9/0xc0 [scsi_mod]
> [<c012e7fa>] sys_init_module+0x18a/0x270
> [<c01040b9>] sysenter_past_esp+0x52/0x71

2004-11-24 00:07:15

by Brent Casavant

[permalink] [raw]
Subject: Re: bug in mm/slab.c

On Tue, 23 Nov 2004, Lee Revell wrote:

> On Tue, 2004-11-23 at 19:13 -0300, [email protected] wrote:

> > nvidia: module license 'NVIDIA' taints kernel.
> > ACPI: PCI interrupt 0000:02:00.0[A] -> GSI 11 (level, low) -> IRQ 11
> > NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-6111 Tue Jul 27
> > 07:55:38 PDT 2004
> > kmem_cache_create: duplicate cache sgpool-8
> > ------------[ cut here ]------------
> > kernel BUG at mm/slab.c:1442!
>
> Not only do you have the nvidia module loaded, but it looks like the
> nvidia module caused your oops.
>
> Did you see the line about 'module license NVIDIA taints kernel'?
> Google for what this means and you will understand why this bug report
> is offtopic.

Not necessarily. We tripped over this one at SGI the other day,
though on IA64. Unfortunately I don't know the specifics of the
kernel that was being used, other than it is 2.6.5 based and fairly
heavily patched. But it most definitely did not have an nVidia
driver loaded. See the backtrace and related information below.

The theory right now is that SCSI support was compiled into the
kernel, but for some reason a load of scsi_mod.ko was attempted
from the initrd. This would obviously cause a problem as both
would try to create sgpool-8.

Unfortunately I have few other details. Just noting that this
has been seen elsewhere very recently.

Brent Casavant

Loading kernel/drivers/scsi/scsi_mod.ko
kmem_cache_create: duplicate cache sgpool-8
kernel BUG at mm/slab.c:1348!
insmod[1256]: bugcheck! 0 [1]

Pid: 1256, CPU 2, comm: insmod
psr : 0000101008026038 ifs : 8000000000000998 ip : [<a00000010011be90>] Not tainted (2.6.5-7.109.14-sn2-sgidev-steiner )
ip is at kmem_cache_create+0xb0/0xbe0
unat: 0000000000000000 pfs : 0000000000000998 rsc : 0000000000000003
rnat: e00000bc3be84c80 bsps: e00000bc3be84880 pr : 5199164592a59665
ldrs: 0000000000000000 ccv : 0000000000000000 fpsr: 0009804c8a70033f
csd : 0000000000000000 ssd : 0000000000000000
b0 : a00000010011be90 b6 : e00000b0022df210 b7 : e000000001fffc00
f6 : 10023bf75522a80000000 f7 : 10008fa00000000000000
f8 : 1003e0000000006206d20 f9 : 10019c40da4028f488854
f10 : 0fffbccccccccc8c00000 f11 : 1003e0000000000000000
r1 : a000000100ee3910 r2 : ffffffffffffd3fd r3 : 0000000000000000
r8 : 000000000000001e r9 : a000000100b6c158 r10 : 0000000000000001
r11 : 0000000000004000 r12 : e0000130030bfe20 r13 : e0000130030b8000
r14 : a000000100b4b3c8 r15 : a000000100d02130 r16 : 0000000000000001
r17 : a000000100b6c118 r18 : ffffffffffffffff r19 : a000000100b6c158
r20 : 0000000300000000 r21 : 00000000000016ee r22 : a000000100d02000
r23 : e0000130030bfd30 r24 : 0000000000000000 r25 : e0000130030bfd48
r26 : e00000bc3be84c80 r27 : 000000000000e8f0 r28 : 000000000000ffde
r29 : a000000100d27cb8 r30 : 0000000000000000 r31 : a000000100d03078

Call Trace:
[<a000000100019120>] show_stack+0x80/0xa0
sp=e0000130030bf9f0 bsp=e0000130030b9258
[<a00000010003b790>] die+0x1b0/0x2c0
sp=e0000130030bfbc0 bsp=e0000130030b9220
[<a00000010003cdb0>] ia64_bad_break+0x2f0/0x400
sp=e0000130030bfbc0 bsp=e0000130030b91f0
[<a00000010000ff00>] ia64_leave_kernel+0x0/0x260
sp=e0000130030bfc50 bsp=e0000130030b91f0
[<a00000010011be90>] kmem_cache_create+0xb0/0xbe0
sp=e0000130030bfe20 bsp=e0000130030b9130
[<a0000002081485c0>] scsi_init_queue+0xa0/0x1b0 [scsi_mod]
sp=e0000130030bfe30 bsp=e0000130030b90d0
[<a000000208148280>] init_scsi+0x20/0x2c0 [scsi_mod]
sp=e0000130030bfe30 bsp=e0000130030b90a8
[<a0000001000eea90>] sys_init_module+0x390/0x760
sp=e0000130030bfe30 bsp=e0000130030b9030
[<a00000010000fd80>] ia64_ret_from_syscall+0x0/0x20
sp=e0000130030bfe30 bsp=e0000130030b9030

--
Brent Casavant If you had nothing to fear,
[email protected] how then could you be brave?
Silicon Graphics, Inc. -- Queen Dama, Source Wars

2004-11-24 00:15:37

by Lee Revell

[permalink] [raw]
Subject: Re: bug in mm/slab.c

On Tue, 2004-11-23 at 18:02 -0600, Brent Casavant wrote:
> On Tue, 23 Nov 2004, Lee Revell wrote:

> > Did you see the line about 'module license NVIDIA taints kernel'?
> > Google for what this means and you will understand why this bug report
> > is offtopic.
>
> Not necessarily.

OK, this one was real. But, my point remains valid re: tainted vs
untainted kernels.

Lee