Re: More info on 104 oops [probably procfs bug]

Krzysztof G. Baranowski (kgb@manjak.knm.org.pl)
Wed, 10 Jun 1998 13:51:32 +0200 (CEST)


On Tue, 9 Jun 1998, Chris Evans wrote:
> However! Under _no_ circumstances should the kernel oops trying to unlink
> ANY file!! Regardless of if only root can try and unlink it (because he
> owns it), and regardless of what file system type.
Ok, agreed. I've tried rm -rf /proc and got one oops (NULL
dereference). Will investigate it later today or tommorow, because now
I have some work pending... anyway, here it is.

4105 symbols from /boot/System.map

EIP: 0xc011fb3b T kfree+0x19f/0x1b4
EIP: <c011fb3b> [klogd]
trace: 0xc01a6f15 T stext_lock+0x2b2d/0x11ab8
trace: 0xc0140e8a T free_proc_entry+0xa/0x10
trace: 0xc013f941 T de_put+0x49/0x50
trace: 0xc01a99e7 T stext_lock+0x55ff/0x11ab8
trace: 0xc01b1a9d T stext_lock+0xd6b5/0x11ab8
trace: 0xc013f980 t proc_delete_inode+0x24/0x2c
trace: 0xc013045c T iput+0x7c/0x1b0
trace: 0xc012f78e T d_delete+0x4e/0x6c
trace: 0xc0140913 t proc_unlink+0x3b/0x44
trace: 0xc01a9b46 T stext_lock+0x575e/0x11ab8
trace: 0xc012b927 T sys_unlink+0xff/0x154
trace: 0xc01097f8 T system_call+0x38/0x3c
code: 00000000 <oops>:
code: 0: c7 05 00 00 00 movl $0x0,0x0
code: 5: 00 00 00 00 00
code: a: 83 c4 08 addl $0x8,%esp
code: d: 5b popl %ebx
code: e: 5e popl %esi
code: f: 5f popl %edi
code: 10: 5d popl %ebp
code: 11: 83 c4 0c addl $0xc,%esp

[root@manjak workshop]# grep c01c79c8 /boot/System.map
c01c79c8 d proc_pci_devices

Jun 10 11:35:47 manjak kernel: kfree: Bad obj c01c79c8
Jun 10 11:35:47 manjak kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000000
Jun 10 11:35:47 manjak kernel: current->tss.cr3 = 009cc000, %cr3 = 009cc000
Jun 10 11:35:47 manjak kernel: *pde = 00000000
Jun 10 11:35:47 manjak kernel: Oops: 0002
Jun 10 11:35:47 manjak kernel: CPU: 0
Jun 10 11:35:47 manjak kernel: EIP: 0010:[<c011fb3b>]
Jun 10 11:35:47 manjak kernel: EFLAGS: 00010282
Jun 10 11:35:47 manjak kernel: eax: 0000001b ebx: c01ee550 ecx: c1e00000 edx: c01bbdc8
Jun 10 11:35:47 manjak kernel: esi: c01c79c8 edi: 00000000 ebp: c1a37000 esp: c0a07f08
Jun 10 11:35:47 manjak kernel: ds: 0018 es: 0018 ss: 0018
Jun 10 11:35:47 manjak kernel: Process rm (pid: 529, process nr: 31, stackpage=c0a07000)
Jun 10 11:35:47 manjak kernel: Stack: c01a6f15 c01c79c8 c01c79c8 c1159100 00000000 c1a37000 c1a37000 c01d0497
Jun 10 11:35:47 manjak kernel: 00000001 c0140e8a c01c79c8 c013f941 c01c79c8 c01a99e7 c01b1a9d c01c79c8
Jun 10 11:35:47 manjak kernel: c013f980 c01c79c8 c01bdaa8 c013045c c1159100 c09b3780 c1159100 c09b3780
Jun 10 11:35:47 manjak kernel: Call Trace: [<c01a6f15>] [<c0140e8a>] [<c013f941>] [<c01a99e7>] [<c01b1a9d>] [<c013f980>] [<c013045c>]
Jun 10 11:35:47 manjak kernel: [<c012f78e>] [<c0140913>] [<c01a9b46>] [<c012b927>] [<c01097f8>]
Jun 10 11:35:47 manjak kernel: Code: c7 05 00 00 00 00 00 00 00 00 83 c4 08 5b 5e 5f 5d 83 c4 0c


> Hey, only root can use ifconfig, so we'd better ignore any network
> configuration related oopses, right?? :)
Heh... ;-)

Cheers,
Kris

-- 
Krzysztof G. Baranowski - President of the Harmless Manyacs' Club
"Smith & Wesson - The original point and click interface..."
http://www.knm.org.pl/                 <prezes@manjak.knm.org.pl>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu