PROBLEM: 2.4.9 bootup oops on kmalloc
Short Descr: Oops on kmalloc
Long Descr: Kernel crashes with an oops on loading of rc/rcS/any other init loadup, however with a precompiled kernel from Debian I do not suffer this problem. (Old box never had any problem, new box does). Complains of kmalloc, dies randomly on init processes with errors that aren't always the same. Sysem is a 1.33ghz T-Bird on a KK266 w/ 2x512mb DIMM's @133mhz. Highmem is turned on.
Area of problem: kmalloc
Kernel Version: Linux 2.4.9
Copy of Oops:
Aug 29 13:47:51 roach kernel: c012725d Aug 29 13:47:51 roach kernel: Oops: 0000 Aug 29 13:47:51 roach kernel: CPU: 0 Aug 29 13:47:51 roach kernel: EIP: 0010:[<c012725d>] Using defaults from ksymoops -t elf32-i386 -a i386 Aug 29 13:47:51 roach kernel: EFLAGS: 00010003 Aug 29 13:47:51 roach kernel: eax: ec706c3c ebx: c210b0c0 ecx: 0890a040 edx: ec759000 Aug 29 13:47:51 roach kernel: esi: 00000246 edi: 000000f0 ebp: f7dc8ea0 esp: f7d3dc38 Aug 29 13:47:51 roach kernel: ds: 0018 es: 0018 ss: 0018 Aug 29 13:47:51 roach kernel: Process rc (pid: 173, stackpage=f7d3d000) Aug 29 13:47:51 roach kernel: Stack: f7d46200 f7d5ae40 c023a24c c0146653 00000013 000000f0 c0282cfc c0146410 Aug 29 13:47:51 roach kernel: 00000000 f7d3de6c fffffff4 c023a248 c02fdc20 0002b6e8 00000296 c0281f18 Aug 29 13:47:51 roach kernel: 00000000 00000000 00000000 00000000 ffffffff f7d2ed00 00000001 00000003 Aug 29 13:47:51 roach kernel: Call Trace: [<c0146653>] [<c0146410>] [<c0139c10>] [<c0143764>] [<c0122f32>] Aug 29 13:47:51 roach kernel: [<c0123083>] [<c0122f40>] [<c0138957>] [<c0145d02>] [<c0145b50>] [<c0122f32>] Aug 29 13:47:51 roach kernel: [<c0138957>] [<c0138b93>] [<c010591f>] [<c0106c3b>] Aug 29 13:47:51 roach kernel: Code: 8b 44 82 18 89 42 14 83 f8 ff 75 07 8b 02
89 43 08 89 f6 56
Quoted 1 line
Quoted 1 line
EIP;
c012725d<kmalloc+4d/90> <=====
Trace; c0146653 <load_elf_binary+243/a80>
Trace; c0146410 <load_elf_binary+0/a80>
Trace; c0139c10 <cached_lookup+10/60>
Trace; c0143764 <update_atime+44/50>
Trace; c0122f32 <do_generic_file_read+502/510>
Trace; c0123083 <generic_file_read+63/80>
Trace; c0122f40 <file_read_actor+0/e0>
Trace; c0138957 <search_binary_handler+67/110>
Trace; c0145d02 <load_script+1b2/1c0>
Trace; c0145b50 <load_script+0/1c0>
Trace; c0122f32 <do_generic_file_read+502/510>
Trace; c0138957 <search_binary_handler+67/110>
Trace; c0138b93 <do_execve+193/1f0>
Trace; c010591f <sys_execve+2f/60>
Trace; c0106c3b <system_call+33/38>
Code; c012725d <kmalloc+4d/90>
00000000 <_EIP>:
Code; c012725d <kmalloc+4d/90> <=====
0: 8b 44 82 18 mov 0x18(%edx,%eax,4),%eax <=====
Code; c0127261 <kmalloc+51/90>
4: 89 42 14 mov %eax,0x14(%edx)
Code; c0127264 <kmalloc+54/90>
7: 83 f8 ff cmp $0xffffffff,%eax
Code; c0127267 <kmalloc+57/90>
a: 75 07 jne 13 <_EIP+0x13> c0127270
<kmalloc+60/90>Code; c0127269 <kmalloc+59/90>
c: 8b 02 mov (%edx),%eax
Code; c012726b <kmalloc+5b/90>
e: 89 43 08 mov %eax,0x8(%ebx)
Code; c012726e <kmalloc+5e/90>
11: 89 f6 mov %esi,%esi
Code; c0127270 <kmalloc+60/90>
13: 56 push %esi
and so forth, to fill about 180k of oops with not much changing between oops's.
Output of ver_linux:
Gnu C 2.95.4 Gnu make 3.79.1 binutils 2.11.90.0.27 util-linux 2.11h mount 2.11h modutils 2.4.7 e2fsprogs 1.22 Linux C Library 2.2.4 Dynamic linker (ldd) 2.2.4 Procps 2.0.7 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 2.0.11
Cpuinfo:
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1330.415
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 2654.20
Everything is builtin, i am not using any modules,
cat /proc/ioports:
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(set)
0300-0301 : i2c (isa bus adapter)
0376-0376 : ide1
0378-037f : i2c (Vellemann adapter)
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(set)
0cf8-0cff : PCI conf1
5000-500f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] 6000-607f : VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] c000-cfff : PCI Bus #01
c000-c0ff : 3Dfx Interactive, Inc. Voodoo Banshee
d000-d00f : VIA Technologies, Inc. Bus Master IDE
d000-d007 : ide0
d008-d00f : ide1
dc00-dc1f : Realtek Semiconductor Co., Ltd. RTL-8029(AS)
dc00-dc1f : ne2k-pci
e000-e0ff : C-Media Electronics Inc CM8738
e000-e0ff : cmpci
cat /proc/iomem:
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-3ffeffff : System RAM
00100000-001c0fb9 : Kernel code
001c0fba-0020f24b : Kernel data
3fff0000-3fff2fff : ACPI Non-volatile Storage 3fff3000-3fffffff : ACPI Tables
d0000000-d3ffffff : VIA Technologies, Inc. VT8363/8365 [KT133/KM133] d4000000-d7ffffff : PCI Bus #01
d4000000-d5ffffff : 3Dfx Interactive, Inc. Voodoo Banshee
d8000000-d9ffffff : PCI Bus #01
d8000000-d9ffffff : 3Dfx Interactive, Inc. Voodoo Banshee
da000000-da000fff : Brooktree Corporation Bt878 da001000-da001fff : Brooktree Corporation Bt878 ffff0000-ffffffff : reserved
lspci -vvv :
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR+
Latency: 0
Region 0: Memory at d0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
Status: RQ=31 SBA+ 64bit- FW+ Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: d4000000-d7ffffff
Prefetchable memory behind bridge: d8000000-d9ffffff
BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev
40)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping+ SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: VIA Technologies, Inc. Bus Master IDE
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Region 4: I/O ports at d000 [size=16]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
Subsystem: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 7
Capabilities: [68] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
Subsystem: Realtek Semiconductor Co., Ltd. RT8029(AS)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at dc00 [size=32]
00:0d.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 02)
Subsystem: Hauppauge computer works Inc. WinTV/GO
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at da000000 (32-bit, prefetchable) [size=4K]00:0d.1 Multimedia controller: Brooktree Corporation Bt878 (rev 02)
Subsystem: Hauppauge computer works Inc. WinTV/GO
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at da001000 (32-bit, prefetchable) [size=4K]00:0f.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
Subsystem: C-Media Electronics Inc CMI8738/C3DX PCI Audio Device
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at e000 [size=256]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
01:00.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee (rev
03) (prog-if 00 [VGA])
Subsystem: Diamond Multimedia Systems Monster Fusion AGP
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort-
<TAbort-
<MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 0
Region 0: Memory at d4000000 (32-bit, non-prefetchable) [size=32M] Region 1: Memory at d8000000 (32-bit, prefetchable) [size=32M] Region 2: I/O ports at c000 [size=256]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [54] AGP version 1.0
Status: RQ=7 SBA+ 64bit+ FW- Rate=x1
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
Capabilities: [60] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Config:
CONFIG_X86=yCONFIG_ISA=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_MK7=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_USE_3DNOW=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_CPUID=yCONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_MTRR=yCONFIG_X86_UP_IOAPIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_NAMES=yCONFIG_SYSVIPC=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_AOUT=yCONFIG_BINFMT_ELF=yCONFIG_BINFMT_MISC=yCONFIG_PNP=yCONFIG_PNPBIOS=yCONFIG_PACKET=yCONFIG_NETLINK=yCONFIG_NETLINK_DEV=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_BLK_DEV_ADMA=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_VIA82CXXX=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_DUMMY=yCONFIG_NET_ETHERNET=yCONFIG_NET_PCI=yCONFIG_NE2K_PCI=yCONFIG_PPP=yCONFIG_PPP_ASYNC=y
IG_PPP_DEFLATE=yCONFIG_PPP_BSDCOMP=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256CONFIG_I2C=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=yCONFIG_I2C_CHARDEV=yCONFIG_MOUSE=yCONFIG_PSMOUSE=yCONFIG_AGP=yCONFIG_AGP_VIA=yCONFIG_DRM=yCONFIG_DRM_TDFX=yCONFIG_VIDEO_DEV=yCONFIG_VIDEO_PROC_FS=yCONFIG_VIDEO_BT848=yCONFIG_FAT_FS=yCONFIG_VFAT_FS=yCONFIG_TMPFS=yCONFIG_ISO9660_FS=yCONFIG_JOLIET=y
ONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=yCONFIG_NFS_FS=yCONFIG_NFS_V3=yCONFIG_NFSD=yCONFIG_NFSD_V3=yCONFIG_SUNRPC=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_PARTITION_ADVANCED=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_ISO8859_1=yCONFIG_VGA_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_SOUND=yCONFIG_SOUND_CMPCI=yCONFIG_SOUND_CMPCI_MIDI=yCONFIG_SOUND_CMPCI_MPUIO=330CONFIG_SOUND_CMPCI_CM8738=yCONFIG_SOUND_CMPCI_SPEAKERS=5CONFIG_SOUND_CMPCI_LINE_REAR=yCONFIG_SOUND_TVMIXER=yCONFIG_MAGIC_SYSRQ=y
Quoted 4 lines
problem. (Old box never had any problem, new box does). Complains of kmalloc, dies randomly on init processes with errors that aren't always the same. Sysem is a 1.33ghz T-Bird on a KK266 w/ 2x512mb DIMM's @133mhz. Highmem is turned on.
Try building a K6 optimised kernel. Some K7 boards/boxes dont survive under the K7 kernel load