Re: oops in init_gendisk() (2.3.48)

From: Andre Hedrick (andre@suse.com)
Date: Mon Feb 28 2000 - 16:26:37 EST


> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> pty: 256 Unix98 ptys configured
> Uniform Multi-Platform E-IDE driver Revision: 6.30
> PIIX4: IDE controller on PCI bus 00 dev 39
> PIIX4: not 100% native mode: will probe irqs later
> ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio
> hdc: TOSHIBA CD-ROM XM-6402B, ATAPI CDROM drive
> ide1 at 0x170-0x177,0x376 on irq 15

DRAT..............Richard, please check for NULL assignment possiblitiies
in the ATA/IDE sub-system
This is one of the "incestuous" natures that ATA/IDE has that Linus
referred to in the past.......... :-(

> Unable to handle kernel NULL pointer dereference at virtual address 00000273
> printing eip:
> c0197758
> *pde = 00000000
> Oops: 0000
> CPU: 0
> EIP: 0010:[<c0197758>]
> EFLAGS: 00010202
> eax: c1269f0c ebx: 00000000 ecx: 00000000 edx: 00000000
> esi: c036f6f0 edi: c036f694 ebp: c036f624 esp: c1269ec8
> ds: 0018 es: 0018 ss: 0018
> Process swapper (pid: 1, stackpage=c1269000)
> Stack: 00000001 00000000 00000000 c036f624 c036f5e4 c018b44c c036f851 c1269f80
> c1269f0c 00000000 c02f6d44 00000001 00000000 00000400 c12d4480 00000040
> 00000001 c036f851 c1269f80 a1000005 c0196e97 c0370128 00000246 00000009
> Call Trace: [<c018b44c>] [<c0196e97>] [<c0197a4b>] [<c0197b2d>] [<c0107104>] [<c
> 010908b>]
> Code: 0f b6 82 73 02 00 00 89 44 24 28 eb 12 8b 84 24 88 00 00 00
>
> ksymoops gives:
> >>EIP; c0197758 <init_gendisk+2b8/320> <=====
> Trace; c018b44c <do_ide1_request+0/14>
> Trace; c0196e97 <probe_hwif+15f/3b4>
> Trace; c0197a4b <hwif_init+28b/2f4>
> Trace; c0197b2d <ideprobe_init+79/ac>
> Trace; c0107104 <init+6c/238>
> Trace; c010908b <kernel_thread+23/30>
> Code; c0197758 <init_gendisk+2b8/320>
> 00000000 <_EIP>:
> Code; c0197758 <init_gendisk+2b8/320> <=====
> 0: 0f b6 82 73 02 00 00 movzbl 0x273(%edx),%eax <=====
> Code; c019775f <init_gendisk+2bf/320>
> 7: 89 44 24 28 movl %eax,0x28(%esp,1)
> Code; c0197763 <init_gendisk+2c3/320>
> b: eb 12 jmp 1f <_EIP+0x1f> c0197777 <init_gendisk+2d7/320>
> Code; c0197765 <init_gendisk+2c5/320>
> d: 8b 84 24 88 00 00 00 movl 0x88(%esp,1),%eax
>
> which works out (I think) to line 745 in ide-probe.c
> sprintf (name, "ide/host%d/bus%d/target%d/lun%d",
> hwif->channel ? hwif->mate->index : hwif->index,
> hwif->channel, unit, 0);
>
> probably hwif->mate == NULL.

You NAIL that nasty!!!!!!

> I'd be happy to provide any further information.
> thanks,
>
> ganesh
>

Andre Hedrick
The Linux ATA/IDE guy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:21 EST