From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 15 09:10:03 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7007116A420 for ; Mon, 15 Oct 2007 09:10:03 +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 5271D13C46A for ; Mon, 15 Oct 2007 09:10:03 +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 l9F9A3cq073452 for ; Mon, 15 Oct 2007 09:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9F9A3tL073451; Mon, 15 Oct 2007 09:10:03 GMT (envelope-from gnats) Resent-Date: Mon, 15 Oct 2007 09:10:03 GMT Resent-Message-Id: <200710150910.l9F9A3tL073451@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Hibma Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4860016A41B for ; Mon, 15 Oct 2007 09:01:45 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from bali.sjc.webweaving.org (bali.sjc.webweaving.org [216.218.185.16]) by mx1.freebsd.org (Postfix) with ESMTP id 33BE013C467 for ; Mon, 15 Oct 2007 09:01:45 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from van-laarhoven.org (lusmsvr01.leidenuniv.nl [132.229.99.21]) (authenticated bits=0) by bali.sjc.webweaving.org (8.12.11/8.12.11) with ESMTP id l9F8kHd5089651 for ; Mon, 15 Oct 2007 01:46:27 -0700 (PDT) (envelope-from nick@van-laarhoven.org) Received: (nullmailer pid 1507 invoked by uid 1001); Mon, 15 Oct 2007 06:45:05 -0000 Message-Id: <1192430705.653195.1506.nullmailer@van-laarhoven.org> Date: Mon, 15 Oct 2007 08:45:05 +0200 From: Nick Hibma To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/117200: ugen0 prints strange string on attach if detached quickly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 09:10:03 -0000 >Number: 117200 >Category: kern >Synopsis: ugen0 prints strange string on attach if detached quickly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 15 09:10:02 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Nick Hibma >Release: FreeBSD 6.2-STABLE i386 >Organization: AnyWi Technologies >Environment: System: FreeBSD hind.van-laarhoven.org 6.2-STABLE FreeBSD 6.2-STABLE #17: Thu Aug 16 12:47:43 CEST 2007 root@hind.van-laarhoven.org:/usr/src/sys/i386/compile/HIND i386 >Description: The dmesg output (I noticed it in the security run output, hence the '+'): +ugen0: at uhub4 port 2 (addr 4) disconnected +All threads purged from ugen0 +ugen0: detached +usbd_get_string: getting lang failed, using 0 +ugen0: ???????????????????????????????????????????????????????????????????????\^Y???\^D product 0xfffe, rev 1.00/1.00, addr 4 +ugen0: at uhub4 port 2 (addr 4) disconnected +All threads purged from ugen0 +ugen0: detached It seems that when detaching the device before it has completely attached creates rubbish in the strin gdescriptor. >How-To-Repeat: Plug in a device and remove quickly. Most probably this can be produced with a bad cable as well. Or now I come to think of it, perhaps with a header that you pull off by jiggling it from left to right. >Fix: Scanned the source code, but couldn't find it straightaway. Strange that a string descriptor is fetched while fetching the language id failed. Or perhaps the bug is in the subr_bus code that displays the device attachment string? >Release-Note: >Audit-Trail: >Unformatted: