public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Judith Lebzelter <judith@linux-foundation.org>
To: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>
Cc: Judith Lebzelter <judith@linux-foundation.org>,
	James Bottomley <James.Bottomley@SteelEye.com>,
	linux-scsi@vger.kernel.org, Duane Cox <dcox@conxxus.com>
Subject: Re: [PATCH] aacraid: Panics during init time reset (Was: [PATCH] aacraid: [Fastboot] Panics for AACRAID driver during 'insmod' for kexec test)
Date: Mon, 2 Apr 2007 12:43:58 -0700	[thread overview]
Message-ID: <20070402194358.GE2364@shell0.pdx.osdl.net> (raw)
In-Reply-To: <AE4F746F2AECFC4DA4AADD66A1DFEF017AA106@otce2k301.adaptec.com>

On Mon, Apr 02, 2007 at 02:34:36PM -0400, Salyzyn, Mark wrote:
> Duane discovered in the scsi-misc-2.6 code that the reset handler could
> be called without the sync command handler set up resulting in a panic.
> Judith discovered this issue within minutes and has recently reported
> it. Here is a fix.

Mark,

I applied this patch and ran a kexec test again and I still 
got a panic:

Loading aacraid.Adaptec aacraid driver (1.1-5[2437]-mh4)^M
ko module^M
ACPI: PCI Interrupt 0000:03:0e.0[A] -> Link [LNKC] -> GSI 3 (level, low) -> IRQ 3^M
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: ^M
 [<0000000000000000>]^M
PGD 4791067 PUD 473c067 PMD 0 ^M
Oops: 0010 [1] ^M
CPU 0 ^M
Modules linked in: aacraid^M
Pid: 977, comm: insmod Not tainted 2.6.21-rc3-kdump #1^M
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]^M
RSP: 0000:ffff81000474dbf0  EFLAGS: 00010246^M
RAX: ffffc20000010000 RBX: ffff810004fe4cd8 RCX: 000000005b540e96^M
RDX: ffffc20000010000 RSI: ffff81000443cf40 RDI: ffff810004fe4cd8^M
RBP: 00000000fffee138 R08: ffffffff81001c20 R09: ffffffff8143593e^M
R10: ffff810004c537a0 R11: 0000000000000000 R12: ffff81000474dc7c^M
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000^M
FS:  000000000057b850(0063) GS:ffffffff814d6000(0000) knlGS:0000000000000000^M
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b^M
CR2: 0000000000000000 CR3: 0000000004745000 CR4: 00000000000006e0^M
Process insmod (pid: 977, threadinfo ffff81000474c000, task ffff81000443cf40)^M
Stack:  ffffffff88008e82 00003e00fc1f0000 0000000000000000 ffff810004fe4cd8^M
 ffff810004fe4800 0000000000000000 ffffffff8800a6dd 0000000000000032^M
 ffffffff88008c3b 0000000000000000 ffffffff00000000 ffff81000474dc7c^M
Call Trace:^M
 [<ffffffff88008e82>] :aacraid:rx_sync_cmd+0x15c/0x16a^M
 [<ffffffff88008c3b>] :aacraid:aac_rx_restart_adapter+0x7e/0x169^M
 [<ffffffff88009121>] :aacraid:_aac_rx_init+0x7b/0x2fc^M
 [<ffffffff88002b1f>] :aacraid:aac_probe_one+0x1a2/0x457^M
 [<ffffffff8112be3d>] pci_device_probe+0x4c/0x75^M
 [<ffffffff8117d41e>] really_probe+0xc4/0x148^M
 [<ffffffff8117d64f>] __driver_attach+0x6d/0xab^M
 [<ffffffff8117d5e2>] __driver_attach+0x0/0xab^M
 [<ffffffff8117d5e2>] __driver_attach+0x0/0xab^M
 [<ffffffff8117c8f6>] bus_for_each_dev+0x43/0x6e^M
 [<ffffffff8117cc38>] bus_add_driver+0x6b/0x18d^M
 [<ffffffff8112bfdb>] __pci_register_driver+0x72/0xa7^M
 [<ffffffff8801203a>] :aacraid:aac_init+0x3a/0x75^M
 [<ffffffff8103bbcc>] sys_init_module+0x1195/0x12e6^M
 [<ffffffff8100913e>] system_call+0x7e/0x83^M
^M
^M
Code:  Bad RIP value.^M
RIP  [<0000000000000000>]^M
 RSP <ffff81000474dbf0>^M
CR2: 0000000000000000^M

There is an extra line in the call trace for the 'rx_sync_cmd'.

Judith

> 
> IMHO, this needs to be applied immediately regardless of the status of
> the kexec patch as this issue is present in the scsi-misc-2.6 driver for
> all existing init-time recovery actions. This patch in principal would
> not be different w/o the kexec patch.
> 
> ObligatoryDisclaimer: Please accept my condolences regarding Outlook's
> handling of patches.
> 
> This attached patch is against current scsi-misc-2.6
>  
> Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
> 
> ---
> 
> Sincerely -- Mark Salyzyn



  reply	other threads:[~2007-04-02 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AE4F746F2AECFC4DA4AADD66A1DFEF01400B76@otce2k301.adaptec.com>
2007-04-02 18:34 ` [PATCH] aacraid: Panics during init time reset (Was: [PATCH] aacraid: [Fastboot] Panics for AACRAID driver during 'insmod' for kexec test) Salyzyn, Mark
2007-04-02 19:43   ` Judith Lebzelter [this message]
2007-04-02 19:56     ` Salyzyn, Mark
2007-04-02 20:03       ` Duane Cox
2007-04-02 20:04         ` Duane Cox
2007-04-02 20:16       ` Judith Lebzelter
2007-04-02 20:29         ` Salyzyn, Mark
2007-04-02 21:18           ` Judith Lebzelter

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=20070402194358.GE2364@shell0.pdx.osdl.net \
    --to=judith@linux-foundation.org \
    --cc=James.Bottomley@SteelEye.com \
    --cc=dcox@conxxus.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mark_salyzyn@adaptec.com \
    /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