Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Dec 2001 07:32:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Dec 2001 07:32:10 -0500 Received: from ucs.co.za ([196.23.43.2]:42769 "EHLO ucs.co.za") by vger.kernel.org with ESMTP id ; Tue, 11 Dec 2001 07:31:58 -0500 Subject: PROBLEM: Kernel Oops on cat /proc/ioports From: Berend De Schouwer To: linux-kernel@vger.kernel.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 11 Dec 2001 14:29:56 +0200 Message-Id: <1008073796.5535.5.camel@bds.ucs.co.za> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [1.] One line summary of the problem: Running "cat /proc/ioports" causes a segfault and kernel oops. [2.] Full description of the problem/report: Running "cat /proc/ioports" may cause cat to segfault, and the kernel to Oops. It doesn't happen immediately after boot -- its required to run the kernel for some time (minimum two days for me), and make it do some work. [3.] Keywords (i.e., modules, networking, kernel): kernel, proc [4.] Kernel version (from /proc/version): Linux version 2.4.14 (root@clo002c.clobea.co.za) (gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)) #3 SMP Mon Nov 12 15:34:14 SAST 2001 [5.] Output of Oops.. message (if applicable) with symbolic information resolved (see Documentation/oops-tracing.txt) Unable to handle kernel paging request at virtual address f886bc55 printing eip: c02a925b *pde = 37bb5067 *pte = 00000000 Oops: 0000 CPU: 0 EIP: 0010:[vsnprintf+523/1056] Not tainted EIP: 0010:[] Not tainted EFLAGS: 00010297 eax: f886bc55 ebx: d957f16c ecx: f886bc55 edx: fffffffe esi: ffffffff edi: e98ddec4 ebp: ffffffff esp: e98dde6c ds: 0018 es: 0018 ss: 0018 Process cat (pid: 29869, stackpage=e98dd000) Stack: 00000000 ffffffff 0000000a d760e480 d957f15e 00000006 d9580000 c02a94a6 d957f15e 26a80ea2 c02bd8a6 e98ddeb8 c02a94c4 d957f15e c02bd895 e98ddeb8 c011dcfb d957f15e c02bd895 00003000 0000307f f886bc55 c2838478 d957f15e Call Trace: [vsprintf+22/32] [sprintf+20/32] [do_resource_list+75/128] [do_resource_list+107/128] [get_resource_list+66/96] Call Trace: [] [] [] [] [] [ioports_read_proc+46/96] [proc_file_read+206/400] [sys_read+150/208] [sys_brk+186/240] [system_call+51/56] [] [] [] [] [] Code: 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 f6 04 24 10 89 c6 and ksymoops < oops: Warning (compare_maps): mismatch on symbol partition_name , ksyms_base says c0254350, System.map says c01560b0. Ignoring ksyms_base entry >>EIP; c02a925b <===== Trace; c02a94a6 Trace; c02a94c4 Trace; c011dcfb Trace; c011dd1b Trace; c011dd72 Trace; c0154eae Trace; c0152a3e Trace; c01368f6 Trace; c0127caa Trace; c010712b Code; c02a925b 00000000 <_EIP>: Code; c02a925b <===== 0: 80 38 00 cmpb $0x0,(%eax) <===== Code; c02a925e 3: 74 07 je c <_EIP+0xc> c02a9267 Code; c02a9260 5: 40 inc %eax Code; c02a9261 6: 4a dec %edx Code; c02a9262 7: 83 fa ff cmp $0xffffffff,%edx Code; c02a9265 a: 75 f4 jne 0 <_EIP> Code; c02a9267 c: 29 c8 sub %ecx,%eax Code; c02a9269 e: f6 04 24 10 testb $0x10,(%esp,1) Code; c02a926d 12: 89 c6 mov %eax,%esi [6.] A small shell script or example program which triggers the problem (if possible) cat /proc/ioports [7.] Environment [7.1.] Software (add the output of the ver_linux script here) Linux clo002c.clobea.co.za 2.4.14 #3 SMP Mon Nov 12 15:34:14 SAST 2001 i686 unknown Gnu C 2.96 Gnu make 3.79.1 binutils 2.10.91.0.2 util-linux 2.11b mount 2.11b modutils 2.4.2 e2fsprogs 1.19 PPP 2.4.0 isdn4k-utils 3.1pre1 Linux C Library 2.2.2 Dynamic linker (ldd) 2.2.2 Procps 2.0.7 Net-tools 1.57 Console-tools 0.3.3 Sh-utils 2.0 Modules Loaded cyclades eepro100 [7.2.] Processor information (from /proc/cpuinfo): processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 10 cpu MHz : 999.584 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1992.29 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 8 model name : Pentium III (Coppermine) stepping : 10 cpu MHz : 999.584 cache size : 256 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse bogomips : 1998.84 [7.3.] Module information (from /proc/modules): cyclades 147616 16 (autoclean) eepro100 16960 1 (autoclean) [7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) I can't add this :( It causes the oops. [7.5.] PCI information ('lspci -vvv' as root) 00:00.0 Host bridge: ServerWorks CNB20LE (rev 06) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- 01:06.1 RAID bus controller: Mylex Corporation: Unknown device 0050 (rev 02) Subsystem: Mylex Corporation: Unknown device 0052 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR-