From owner-freebsd-usb@FreeBSD.ORG Wed Oct 31 13:50:02 2007 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FB5016A41B for ; Wed, 31 Oct 2007 13:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA0C13C4A3 for ; Wed, 31 Oct 2007 13:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9VDo2j7036907 for ; Wed, 31 Oct 2007 13:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9VDo2NO036906; Wed, 31 Oct 2007 13:50:02 GMT (envelope-from gnats) Resent-Date: Wed, 31 Oct 2007 13:50:02 GMT Resent-Message-Id: <200710311350.l9VDo2NO036906@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kyryll A Mirnenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC6216A417 for ; Wed, 31 Oct 2007 13:46:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C074C13C481 for ; Wed, 31 Oct 2007 13:46:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9VDkr5b082505 for ; Wed, 31 Oct 2007 13:46:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9VDkrbG082504; Wed, 31 Oct 2007 13:46:53 GMT (envelope-from nobody) Message-Id: <200710311346.l9VDkrbG082504@www.freebsd.org> Date: Wed, 31 Oct 2007 13:46:53 GMT From: Kyryll A Mirnenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/117719: umass plugging with hald running causes kernel panics on 7.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 13:50:02 -0000 >Number: 117719 >Category: usb >Synopsis: umass plugging with hald running causes kernel panics on 7.0 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 31 13:50:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Kyryll A Mirnenko >Release: RELENG_7 >Organization: >Environment: FreeBSD miryanote 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Tue Oct 30 18:58:45 EET 2007 mirya@miryanote:/usr/src/sys/i386/compile/MY-LITE i386 >Description: I have recent RELENG_7 with hald running (yes, hal port was rebuilt twice). I'm trying to plug in an USB hard disk, here's devices list from dmesg leading to it: acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 0.3 (no driver attached) ehci0: mem 0xe0100000-0xe01003ff irq 11 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered umass0: on uhub3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) The unusual thing with this disk it that it has a GELI-encrypted FFS put in the root, e.g. without any partitions, so you'll have /dev/da0 and /dev/da0.eli after `geli attach`. THE PROBLEM: after plugging it in the system crashes with hald-probe-storage as a current process. Other information useful: 1) when the disk is plugged in before boot (and then hald is run on boot), everything works just well; the same if hald is not run at all 2) the same experiment with a partitioned and FAT-formatted USB flash drive (so I have FAT at /dev/da0s1) didn't cause the panic. 3) the described didn't cause any panics on 6.2 I'll try to get a stacktrace soon and test it with other umass devices >How-To-Repeat: 1) create a GELI-encrypted FFS in the root of some umass device (so it will be da?.eli, hope other umass devices will work the same) 2) run hald (it runs for me at the boot time) 3) plug in the umass device from (1) 4) except a panic in a few moments >Fix: >Release-Note: >Audit-Trail: >Unformatted: