mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Christian Staudenmayer <eggdropfan@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Booting 2.5.67-ac1 makes the kernel panic
Date: Sat, 19 Apr 2003 01:11:47 +0200	[thread overview]
Message-ID: <20030418231147.GA19622@win.tue.nl> (raw)
In-Reply-To: <20030418223423.66409.qmail@web41811.mail.yahoo.com>

On Fri, Apr 18, 2003 at 03:34:23PM -0700, Christian Staudenmayer wrote:

> (sorry for posting this again, but the kind solution given
> by Patrick Mansfield turn out to be no solution at all.
> Thanks anyways :)
> 
> i recently compiled 2.5.67-ac1 on my machine which uses the
> aic7xxx driver for an old adaptec 2940 scsi controller.
> When booting, the kernel panics after loading the scsi driver
> with the following message:
> 
> Process swapper (pid: 1, threadinfo=dbf8e000 task=dbf8c040)
> Stack: c15259a8 c15259a8 00000001 00000002 dbf8fe48 c022cd1a c15259a8 000000ff
>        dbf8fe3c dbf8fe40
> Call Trace:
>  [<c022cd1a>] ide_xlate_1024+0x106/0x18c
>  [<c01654aa>] handle_ide_mess+0x14e/0x1e8

You have a SCSI disk, read its partitions, look whether
special disk manager or geometry translations are required
and crash.

Why? Of course Alan should have removed this ide_mess :-),
but I suppose Al is the culprit that broke ide_xlate_1024
converting it to bdev.

The code

int ide_xlate_1024 (struct block_device *bdev, int xparm, int ptheads, const char *msg)
{
        ide_drive_t *drive = bdev->bd_disk->private_data;

is just broken - there is no guarantee that bdev is an IDE disk,
and casting some private pointer to ide_drive_t and then
accessing fields must be unhealthy.

Try replacing the body of ide_xlate_1024 by just

	return 0;

Andries


  reply	other threads:[~2003-04-18 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-18 22:34 Christian Staudenmayer
2003-04-18 23:11 ` Andries Brouwer [this message]
2003-04-19  0:15   ` Christian Staudenmayer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030418231147.GA19622@win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=eggdropfan@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®