From nick@van-laarhoven.org Mon Oct 15 09:01:45 2007 Return-Path: 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 Subject: ugen0 prints strange string on attach if detached quickly X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 117200 >Category: usb >Synopsis: [ugen] ugen0 prints strange string on attach if detached quickly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >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: Mon Oct 29 10:20:03 UTC 2007 >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: Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon Oct 29 10:19:33 UTC 2007 Responsible-Changed-Why: Reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=117200 >Unformatted: