From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 17 03:10:16 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CBD016A41F for ; Tue, 17 Jan 2006 03:10:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5EA043D4C for ; Tue, 17 Jan 2006 03:10:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0H3ACLt055865 for ; Tue, 17 Jan 2006 03:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0H3AC6c055864; Tue, 17 Jan 2006 03:10:12 GMT (envelope-from gnats) Resent-Date: Tue, 17 Jan 2006 03:10:12 GMT Resent-Message-Id: <200601170310.k0H3AC6c055864@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, "Simson L. Garfinkel" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BF0F16A41F for ; Tue, 17 Jan 2006 03:02:18 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5B7F43D45 for ; Tue, 17 Jan 2006 03:02:17 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0H32GEo082330 for ; Tue, 17 Jan 2006 03:02:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0H32Gfs082327; Tue, 17 Jan 2006 03:02:16 GMT (envelope-from nobody) Message-Id: <200601170302.k0H32Gfs082327@www.freebsd.org> Date: Tue, 17 Jan 2006 03:02:16 GMT From: "Simson L. Garfinkel" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/91896: Serial Number of USB Memory Sticks is not passed through to "camcontrol inquiry" command 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: Tue, 17 Jan 2006 03:10:16 -0000 >Number: 91896 >Category: kern >Synopsis: Serial Number of USB Memory Sticks is not passed through to "camcontrol inquiry" command >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 17 03:10:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Simson L. Garfinkel >Release: 6.0-STABLE >Organization: Harvard >Environment: FreeBSD h1.ex.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 24 19:27:02 EST 2005 simsong@h1.ex.com:/usr/src/sys/i386/compile/H1 i386 >Description: The "camcontrol inquiry" command reports the serial number of some USB and FIrewire-attached devices, but not others. I need these serial numbers for work that I do in computer forensics. For example, my computer has 3 firewire drives on it now and 1 USB memory sticks. The firewire drives are Maxtor OneTouch II drives. Here is a devlist: h1# camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) at scbus0 target 1 lun 0 (da1,pass1) at scbus0 target 2 lun 0 (da2,pass2) at scbus1 target 0 lun 0 (sa0,pass3) at scbus2 target 0 lun 0 (pass4,da3) h1# I can get the SN of the OneTouch drives: h1# camcontrol inquiry 0:0:0 pass0: Fixed Direct Access SCSI-4 device pass0: Serial Number B6202SQH pass0: 50.000MB/s transfers , Tagged Queueing Enabled h1# But I can't get the SN of the Cruzer: h1# camcontrol inquiry 2:0:0 pass4: Removable Direct Access SCSI-2 device pass4: Serial Number pass4: 1.000MB/s transfers h1# It's worse than it looks; the serial number is actually being reported as control-underbar: h1# camcontrol inquiry 2:0:0 | cat -v pass4: Removable Direct Access SCSI-2 device pass4: Serial Number ^_ pass4: 1.000MB/s transfers h1# So that's probably a bug in the kernel somewhere. Notice that I can get the serial number using the sysctl command: h1# sysctl -a | grep dev.umass.0 dev.umass.0.%desc: SanDisk Corporation Cruzer Mini, rev 2.00/0.10, addr 2 dev.umass.0.%driver: umass dev.umass.0.%location: port=1 interface=0 dev.umass.0.%pnpinfo: vendor=0x0781 product=0x5150 devclass=0x00 devsubclass=0x00 sernum="SNDK8CB7743691708407" intclass=0x08 intsubclass=0x06 dev.umass.0.%parent: uhub0 h1# Unfortunately, I can't figure out how to map from /dev/da3 to dev.umass.0. THere's no obvious way that I have found. If you could tell me how to do that, that would be neat. In the meantime, this bug should probably be fixed. >How-To-Repeat: Atatch a memory stick and type "camcontrol devlist", then do an "camcontrol inquiry" on the device. You . won't see it's SN >Fix: >Release-Note: >Audit-Trail: >Unformatted: