* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
[not found] <20060202150719.0dafc8ae.akpm@osdl.org>
@ 2006-02-03 7:30 ` Stefan Richter
2006-02-03 7:43 ` Stefan Richter
2006-02-03 19:00 ` john stultz
0 siblings, 2 replies; 7+ messages in thread
From: Stefan Richter @ 2006-02-03 7:30 UTC (permalink / raw)
To: johnstul; +Cc: Andrew Morton, linux1394-devel, linux-scsi
Andrew Morton wrote:
> Begin forwarded message:
>
> Date: Thu, 2 Feb 2006 15:03:45 -0800
> From: bugme-daemon@bugzilla.kernel.org
> To: bugme-new@lists.osdl.org
> Subject: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
>
>
> http://bugzilla.kernel.org/show_bug.cgi?id=5998
>
> Summary: oops on mount "kernel access of bad area, sig: 11 [#1]"
> Kernel Version: 2.6.15-rc5
> Status: NEW
> Severity: normal
> Owner: drivers_ieee1394@kernel-bugs.osdl.org
> Submitter: johnstul@us.ibm.com
>
>
> Most recent kernel where this bug did not occur: unknown
> Distribution: Ubuntu
> Hardware Environment: ppc32 Apple Mac mini
> Problem Description:
>
> After over 10 days of uptime, mounting and unmounting my external firewire
> hardddrive for backups, I got the following OOPs today when trying to mount the
> drive.
I am Cc'ing linux-scsi because it is not entirely clear (to me) whether
sbp2 or upper layers may cause it. Although I suspect sbp2's interaction
with the scsi core to be the culprit again.
> I've seen problems where the cable gets bumped loose and I'll see
> something similar, however I have not been able to verify if the cable was
> secure when this occured. The mount command is still hung, but the box seems to
> be running fine.
When the cable is pulled during I/O, sbp2 did not take care to finish
SCSI commands that were enqueued right before the cable pull. (Other
hardware problems may have the same effect.) I discovered this problem
when I still ran Linux 2.6.14, there it simply lead to knodemgrd being
stuck in uninteruptible sleep in blk_execute_rq(). I have not checked
yet how Linux 2.6.15 or other configurations than preemptible i386
uniprocessor would react on this. A fix for this is making its way
downstream. (Upstream?)
http://www.kernel.org/git/?p=linux/kernel/git/scjody/ieee1394.git;a=commitdiff;h=61daa34c132c5d4ed8630e2c46e9bf2f0c7b3428
I don't know if the patch alone can be applied to 2.6.15, but this patch
set can: http://me.in-berlin.de/~s5r6/linux1394/updates/
> ieee1394: sbp2: aborting sbp2 command
> sd 0:0:0:0:
> command: cdb[0]=0x28: 28 00 09 27 c0 03 00 00 02 00
> ieee1394: sbp2: aborting sbp2 command
> sd 0:0:0:0:
> command: cdb[0]=0x0: 00 00 00 00 00 00
> Oops: kernel access of bad area, sig: 11 [#1]
> PREEMPT
> NIP: C0023FF8 LR: C0023FF8 SP: EFC0FEB0 REGS: efc0fe00 TRAP: 0300 Not tainted
> MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
> DAR: 00000000, DSISR: 40000000
> TASK = c134b230[317] 'scsi_eh_0' THREAD: efc0e000
> Last syscall: -1
> GPR00: 00000000 EFC0FEB0 C134B230 00000001 C05BDE28 FFFFFFFF C0650000 C0664E84
> GPR08: 00040000 00000001 C13DF400 EFC0E000 C0650000 00000000 00000000 00000000
> GPR16: 00000000 C02EF5A0 C06070EC C0586F7C C06070EC C0586F7C C06070EC C0650000
> GPR24: 00000003 C13EE204 C13EE268 00000001 00009032 00000000 C13EE1C0 C02EF440
> NIP [c0023ff8] complete+0x28/0x90
> LR [c0023ff8] complete+0x28/0x90
> Call trace:
> [c02ef45c] scsi_eh_done+0x1c/0x30
> [c03248b8] sbp2scsi_abort+0x158/0x170
> [c02efbcc] scsi_send_eh_cmnd+0x10c/0x1a0
> [c02efce8] scsi_eh_tur+0x88/0xe0
> [c02f0930] scsi_error_handler+0x450/0xa10
> [c00437e8] kthread+0x108/0x110
> [c0007534] kernel_thread+0x44/0x60
> note: scsi_eh_0[317] exited with preempt_count 1
>
>
> Steps to reproduce: Not easily reproduced.
It looks actually different from what I described above. Perhaps
scsi_eh_done was called on a command which was already completed shortly
before. sbp2scsi_abort calls the "done" handler for the command to be
aborted and for all other pending commands (for the latter to be
enqueued again). Sbp2 also calls the done handler right after a SBP-2
reconnect in sbp2_update, i.e. after the FireWire bus was reset. Perhaps
one or the other or both places in sbp2 need to take the Scsi_Host's
host_lock.
John, do you have the syslog still available from when the oops
occurred? Was there a reconnect logged?
This report from October may be related: "slab error in
cache_free_debugcheck(): cache `sgpool-8"
http://marc.theaimsgroup.com/?t=112931959700002
Although it appeared (to the reporter) as if this problem was fixed
lately. Maybe it was only masked out by an unrelated change.
--
Stefan Richter
-=====-=-==- --=- ---==
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-03 7:30 ` Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]" Stefan Richter
@ 2006-02-03 7:43 ` Stefan Richter
2006-02-03 19:00 ` john stultz
1 sibling, 0 replies; 7+ messages in thread
From: Stefan Richter @ 2006-02-03 7:43 UTC (permalink / raw)
To: linux-scsi; +Cc: johnstul, Andrew Morton, linux1394-devel
I wrote:
> Perhaps one or the other or both places in sbp2 need to take the
> Scsi_Host's host_lock.
...well, or rather not, as far as I am now recalling of what host_lock
actually protected the last time I checked...
--
Stefan Richter
-=====-=-==- --=- ---==
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-03 7:30 ` Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]" Stefan Richter
2006-02-03 7:43 ` Stefan Richter
@ 2006-02-03 19:00 ` john stultz
2006-02-04 11:34 ` Stefan Richter
1 sibling, 1 reply; 7+ messages in thread
From: john stultz @ 2006-02-03 19:00 UTC (permalink / raw)
To: Stefan Richter; +Cc: Andrew Morton, linux1394-devel, linux-scsi
On Fri, 2006-02-03 at 08:30 +0100, Stefan Richter wrote:
> > ieee1394: sbp2: aborting sbp2 command
> > sd 0:0:0:0:
> > command: cdb[0]=0x28: 28 00 09 27 c0 03 00 00 02 00
> > ieee1394: sbp2: aborting sbp2 command
> > sd 0:0:0:0:
> > command: cdb[0]=0x0: 00 00 00 00 00 00
> > Oops: kernel access of bad area, sig: 11 [#1]
> > PREEMPT
> > NIP: C0023FF8 LR: C0023FF8 SP: EFC0FEB0 REGS: efc0fe00 TRAP: 0300 Not tainted
> > MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
> > DAR: 00000000, DSISR: 40000000
> > TASK = c134b230[317] 'scsi_eh_0' THREAD: efc0e000
> > Last syscall: -1
> > GPR00: 00000000 EFC0FEB0 C134B230 00000001 C05BDE28 FFFFFFFF C0650000 C0664E84
> > GPR08: 00040000 00000001 C13DF400 EFC0E000 C0650000 00000000 00000000 00000000
> > GPR16: 00000000 C02EF5A0 C06070EC C0586F7C C06070EC C0586F7C C06070EC C0650000
> > GPR24: 00000003 C13EE204 C13EE268 00000001 00009032 00000000 C13EE1C0 C02EF440
> > NIP [c0023ff8] complete+0x28/0x90
> > LR [c0023ff8] complete+0x28/0x90
> > Call trace:
> > [c02ef45c] scsi_eh_done+0x1c/0x30
> > [c03248b8] sbp2scsi_abort+0x158/0x170
> > [c02efbcc] scsi_send_eh_cmnd+0x10c/0x1a0
> > [c02efce8] scsi_eh_tur+0x88/0xe0
> > [c02f0930] scsi_error_handler+0x450/0xa10
> > [c00437e8] kthread+0x108/0x110
> > [c0007534] kernel_thread+0x44/0x60
> > note: scsi_eh_0[317] exited with preempt_count 1
> >
> >
> > Steps to reproduce: Not easily reproduced.
>
> It looks actually different from what I described above. Perhaps
> scsi_eh_done was called on a command which was already completed shortly
> before. sbp2scsi_abort calls the "done" handler for the command to be
> aborted and for all other pending commands (for the latter to be
> enqueued again). Sbp2 also calls the done handler right after a SBP-2
> reconnect in sbp2_update, i.e. after the FireWire bus was reset. Perhaps
> one or the other or both places in sbp2 need to take the Scsi_Host's
> host_lock.
>
> John, do you have the syslog still available from when the oops
> occurred? Was there a reconnect logged?
I don't believe so. When I got home and unplugged the disk, all I got
was:
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node suspended: ID:BUS[0-00:1023] GUID[0001a35000048584]
However the /dev/ nodes were still present, so I rebooted the box,
instead of confusing udev by trying to plug it back in.
Let me know if there's anything else you need.
thanks
-john
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-03 19:00 ` john stultz
@ 2006-02-04 11:34 ` Stefan Richter
2006-02-05 21:28 ` Jody McIntyre
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Richter @ 2006-02-04 11:34 UTC (permalink / raw)
To: john stultz; +Cc: Andrew Morton, linux1394-devel, linux-scsi
john stultz wrote:
> Let me know if there's anything else you need.
Please check if your kernel (2.6.15-rc5) contains Jody's patch
"sbp2_command_orb_lock must be held when accessing the _orb_inuse
list.":
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=963f48a116bf3b797fe184e74c79c50de1da70bb
I.e. check if drivers/ieee1394/sbp2.c::sbp2scsi_complete_all_commands()
contains a pair of spin_lock_irqsave/ spin_unlock_irqrestore.
Linux 2.6.15 contains it, but I don't know into which -rc it went.
--
Stefan Richter
-=====-=-==- --=- --=--
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-04 11:34 ` Stefan Richter
@ 2006-02-05 21:28 ` Jody McIntyre
2006-02-05 23:06 ` Stefan Richter
0 siblings, 1 reply; 7+ messages in thread
From: Jody McIntyre @ 2006-02-05 21:28 UTC (permalink / raw)
To: Stefan Richter; +Cc: john stultz, Andrew Morton, linux1394-devel, linux-scsi
On Sat, Feb 04, 2006 at 12:34:07PM +0100, Stefan Richter wrote:
> Linux 2.6.15 contains it, but I don't know into which -rc it went.
-rc3. John, don't bother checking. It's in there :)
Cheers,
Jody
> --
> Stefan Richter
> -=====-=-==- --=- --=--
> http://arcgraph.de/sr/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> mailing list linux1394-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux1394-devel
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-05 21:28 ` Jody McIntyre
@ 2006-02-05 23:06 ` Stefan Richter
2006-02-06 19:54 ` john stultz
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Richter @ 2006-02-05 23:06 UTC (permalink / raw)
To: Jody McIntyre; +Cc: john stultz, Andrew Morton, linux1394-devel, linux-scsi
Jody McIntyre wrote:
> On Sat, Feb 04, 2006 at 12:34:07PM +0100, Stefan Richter wrote:
>>Linux 2.6.15 contains it, but I don't know into which -rc it went.
>
> -rc3. John, don't bother checking. It's in there :)
Yes, indeed. _If_ we are all talking about Linus' tree here. Are we? :-)
--
Stefan Richter
-=====-=-==- --=- --==-
http://arcgraph.de/sr/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]"
2006-02-05 23:06 ` Stefan Richter
@ 2006-02-06 19:54 ` john stultz
0 siblings, 0 replies; 7+ messages in thread
From: john stultz @ 2006-02-06 19:54 UTC (permalink / raw)
To: Stefan Richter; +Cc: Jody McIntyre, Andrew Morton, linux1394-devel, linux-scsi
On Mon, 2006-02-06 at 00:06 +0100, Stefan Richter wrote:
> Jody McIntyre wrote:
> > On Sat, Feb 04, 2006 at 12:34:07PM +0100, Stefan Richter wrote:
> >>Linux 2.6.15 contains it, but I don't know into which -rc it went.
> >
> > -rc3. John, don't bother checking. It's in there :)
>
> Yes, indeed. _If_ we are all talking about Linus' tree here. Are we? :-)
Yes, it was Linus' tree. Although I was pulling w/ git, so it was from
somewhere between 2.6.15-rc5 and 2.6.15.
thanks
-john
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-02-06 19:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060202150719.0dafc8ae.akpm@osdl.org>
2006-02-03 7:30 ` Fw: [Bugme-new] [Bug 5998] New: oops on mount "kernel access of bad area, sig: 11 [#1]" Stefan Richter
2006-02-03 7:43 ` Stefan Richter
2006-02-03 19:00 ` john stultz
2006-02-04 11:34 ` Stefan Richter
2006-02-05 21:28 ` Jody McIntyre
2006-02-05 23:06 ` Stefan Richter
2006-02-06 19:54 ` john stultz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox