NetBSD Problem Report #41133
From tron@zhadum.org.uk Fri Apr 3 22:19:28 2009
Return-Path: <tron@zhadum.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 620CE63B8C8
for <gnats-bugs@gnats.NetBSD.org>; Fri, 3 Apr 2009 22:19:28 +0000 (UTC)
Message-Id: <20090403221924.B2F293E3E2@mail.zhadum.org.uk>
Date: Fri, 3 Apr 2009 23:19:24 +0100 (BST)
From: tron@zhadum.org.uk
Reply-To: tron@zhadum.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Connecting an USB mass storage device locks up the kernel
X-Send-Pr-Version: 3.95
>Number: 41133
>Category: kern
>Synopsis: Connecting an USB mass storage device locks up the kernel
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 03 22:20:04 +0000 2009
>Closed-Date: Sun Mar 08 11:19:36 +0000 2015
>Last-Modified: Sun Mar 08 11:19:36 +0000 2015
>Originator: Matthias Scheler
>Release: NetBSD 5.0_RC3 2009-0-331 sources
>Organization:
Matthias Scheler http://zhadum.org.uk/
>Environment:
System: NetBSD colwyn.zhadum.org.uk 5.0_RC3 NetBSD 5.0_RC3 (COLWYN.64) #0: Tue Mar 31 18:09:57 BST 2009 tron@colwyn.zhadum.org.uk:/src/sys/compile/COLWYN.64 amd64
Architecture: x86_64
Machine: amd64
>Description:
For the second time my NetBSD/amd64 Dual Core system locked up completely
when I connected a USB mass storage device. This is what I got out of
the locked up kernel via the serial console:
db{0}> bt
breakpoint() at netbsd:breakpoint+0x5
comintr() at netbsd:comintr+0x53a
Xintr_ioapic_edge1() at netbsd:Xintr_ioapic_edge1+0xef
--- interrupt ---
uvm_pglistalloc() at netbsd:uvm_pglistalloc+0x391
_bus_dmamem_alloc_range() at netbsd:_bus_dmamem_alloc_range+0x42
_bus_dmamem_alloc() at netbsd:_bus_dmamem_alloc+0x49
usb_block_allocmem() at netbsd:usb_block_allocmem+0xe4
usb_allocmem() at netbsd:usb_allocmem+0x45
uhci_alloc_std() at netbsd:uhci_alloc_std+0x58
uhci_allocm() at netbsd:uhci_allocm+0x88
usbd_alloc_buffer() at netbsd:usbd_alloc_buffer+0x20
umass_attach() at netbsd:umass_attach+0x2f4
config_attach_loc() at netbsd:config_attach_loc+0x14a
usbd_attachinterfaces() at netbsd:usbd_attachinterfaces+0x1f2
usbd_probe_and_attach() at netbsd:usbd_probe_and_attach+0x9c
usbd_new_device() at netbsd:usbd_new_device+0x390
uhub_explore() at netbsd:uhub_explore+0x1e0
usb_discover() at netbsd:usb_discover+0x37
usb_event_thread() at netbsd:usb_event_thread+0x3e
Backtrace of the second CPU:
db{0}> bt
x86_pause() at netbsd:x86_pause
_kernel_lock() at netbsd:_kernel_lock+0xc7
tcp_usrreq_wrapper() at netbsd:tcp_usrreq_wrapper+0x39
sosend() at netbsd:sosend+0x4e4
soo_write() at netbsd:soo_write+0x2d
dofilewrite() at netbsd:dofilewrite+0x81
sys_write() at netbsd:sys_write+0x72
syscall() at netbsd:syscall+0x9d
This problem only occurs occassional and is not (easy) reproducable.
After rebooting the machine the USB card reader attached fine:
umass0: detached
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Generic USB Storage Device, rev 1.10/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB Storage-SMC, 0180> disk removable
sd0: drive offline
sd0(umass0:0:0:0): Check Condition on CDB: 0x00 00 00 00 00 00
SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
sd0: unable to open device, error = 19
sd1 at scsibus0 target 0 lun 1: <Generic, USB Storage-CFC, 0180> disk removable
sd1: fabricating a geometry
sd1: 3847 MB, 3847 cyl, 64 head, 32 sec, 512 bytes/sect x 7880545 sectors
sd1: fabricating a geometry
sd2 at scsibus0 target 0 lun 2: <Generic, USB Storage-MMC, 0180> disk removable
sd2: drive offline
sd2(umass0:0:0:2): Check Condition on CDB: 0x00 40 00 00 00 00
SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
sd2: unable to open device, error = 19
sd3 at scsibus0 target 0 lun 3: <Generic, USB Storage-MSC, 0180> disk removable
sd3: drive offline
sd3(umass0:0:0:3): Check Condition on CDB: 0x00 60 00 00 00 00
SENSE KEY: Not Ready
ASC/ASCQ: Medium Not Present
sd3: unable to open device, error = 19
It is not related to the USB device because it happend with an
Onto IDE hard disk enclosure the last time.
>How-To-Repeat:
Connect a USB mass storage to a running system. If you are unlucky it will
lock up.
>Fix:
Not known.
>Release-Note:
>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/41133: Connecting an USB mass storage device locks up the
kernel
Date: Thu, 1 Dec 2011 22:32:04 +0000
What ehci(4) chip is involved here?
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
Subject: Re: kern/41133: Connecting an USB mass storage device locks up the
kernel
Date: Thu, 1 Dec 2011 23:05:01 +0000
On Thu, Dec 01, 2011 at 10:35:03PM +0000, Jonathan A. Kollasch wrote:
> From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: kern/41133: Connecting an USB mass storage device locks up the
> kernel
> Date: Thu, 1 Dec 2011 22:32:04 +0000
>
> What ehci(4) chip is involved here?
It is an Intel ehci(4) chip:
pchb0: Intel E7230 Host (rev. 0xc0)
[...]
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 0x01
)
ehci0: interrupting at ioapic0 pin 23
ehci0: BIOS refuses to give up ownership, using force
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
The problem is probably related to this:
http://mail-index.netbsd.org/source-changes/2009/11/22/msg003459.html
http://releng.netbsd.org/cgi-bin/req-5.cgi?show=1158
I've not seen the problem for a long time.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sun, 08 Mar 2015 09:20:53 +0000
State-Changed-Why:
OK to close?
From: Matthias Scheler <tron@zhadum.org.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/41133 (Connecting an USB mass storage device locks up the
kernel)
Date: Sun, 8 Mar 2015 10:22:04 +0000
On Sun, Mar 08, 2015 at 09:20:53AM +0000, Nick Hudson wrote:
> Synopsis: Connecting an USB mass storage device locks up the kernel
>
> State-Changed-From-To: open->feedback
> State-Changed-By: skrll@NetBSD.org
> State-Changed-When: Sun, 08 Mar 2015 09:20:53 +0000
> State-Changed-Why:
> OK to close?
Yes, please go ahead.
Kind regards
--
Matthias Scheler https://zhadum.org.uk/
State-Changed-From-To: feedback->closed
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Sun, 08 Mar 2015 11:19:36 +0000
State-Changed-Why:
Fixed some time ago.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.