New: oops on mount "kernel access of bad area, sig: 11 [#1]"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 18 lines · Andrew Morton
Begin forwarded message:
Date: Thu, 2 Feb 2006 15:03:45 -0800
From: [email protected]
To: [email protected]
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: [email protected]
Submitter: [email protected]
Quoted 8 lines
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.
Quoted 4 lines
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/
Quoted 21 lines
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 taintedMSR: 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/0x90LR [c0023ff8]complete+0x28/0x90Call 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
Quoted 4 lines
note: scsi_eh_0[317] exited with
preempt_count1Steps 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.
Signature · 3 lines
Stefan Richter -=====-=-==- --=- ---== http://arcgraph.de/sr/
Quoted 2 lines · 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...
Signature · 3 lines
Stefan Richter -=====-=-==- --=- ---== http://arcgraph.de/sr/
Quoted 41 lines · Stefan Richter
Quoted 27 lines
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:efc0fe00TRAP: 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/0x90Call 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/0x60Quoted 4 lines
note: scsi_eh_0[317] exited with
preempt_count1Steps to reproduce: Not easily reproduced.
It looks actually different from what I described above. Perhaps
scsi_eh_donewas called on a command which was already completed shortly before.sbp2scsi_abortcalls 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 insbp2_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'shost_lock.
Quoted 2 lines
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
Quoted 1 line · john stultz
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.
Signature · 3 lines
Stefan Richter -=====-=-==- --=- --=-- http://arcgraph.de/sr/
Quoted 1 line · Stefan Richter
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
Quoted 14 lines
Signature · 13 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux1394-devel
Quoted 4 lines · Jody McIntyre
Quoted 1 line · Stefan Richter
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? :-)
Signature · 10 lines
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
Quoted 7 lines · Stefan Richter
Quoted 4 lines · Jody McIntyre
Quoted 1 line · Stefan Richter
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