Re: 2.2pre1 crashes with partition check[OOPS w/ac3 also]

Mike McQuade (mmcquade@aa.net)
Thu, 31 Dec 1998 00:03:36 +0000


FYI.

This same crash occurs with AC3, this showed up on my machine starting
with AC2.

** The patch below fixes the problem on my machine (thanks Jens) **.

Here are the details of the OOPS:

Partion check:

sda:<1> unable to handle kernel NULL pointer dereference at virtual
address 00000048

Current->tss.cr3 = 00101000, %cr3=00101000

*pde = 00000000

OOPS: 0000
CPU: 0
EIP=0010:[<c0182a18>]
Eflags: 00010246

eax: 00000000 ebx: 00000000 ecx: c0255f34 edx: 00000006
esi: c01f6738 edi: 000000ff ebp: 00000800 esp: c0003f38

process swapper (pid:1, process nr:1, stackpage=c0003000)
...
...

Jens Axboe wrote:
>
> Mike McQuade wrote:
> > 2.2pre1-ac2 CRASHED / OOPSes at the partition check as well.
> >
> > It attempts to check the partition on my /dev/sda drive (which is DOSfs,
> > FAT16),then crashes. Linux is on the /dev/hda drive, booting Linux
> > (bzImage) from Loadlin.
>
> Same thing here... I traced it down to ide_xlate_1024 and applied this
> simple patch gets solves the problem for me.
>
> --- virgin/drivers/block/ide.c Wed Dec 30 20:54:43 1998
> +++ linux/drivers/block/ide.c Wed Dec 30 20:47:40 1998
> @@ -2575,6 +2575,9 @@
> unsigned long tracks;
>
> if ((drive = get_info_ptr(i_rdev)) == NULL ||
> drive->forced_geom) {
> + /* bombs otherwise /axboe */
> + if (drive == NULL)
> + return 0;
> /*
> * Update the current 3D drive values.
> */

-
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/