From nobody@FreeBSD.org  Sun Jan 27 15:39:32 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EB1C816A468
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2008 15:39:32 +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 DA54313C455
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2008 15:39:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RFbod2018400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 27 Jan 2008 15:37:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0RFboux018399;
	Sun, 27 Jan 2008 15:37:50 GMT
	(envelope-from nobody)
Message-Id: <200801271537.m0RFboux018399@www.freebsd.org>
Date: Sun, 27 Jan 2008 15:37:50 GMT
From: Bernard Steiner <bernard.steiner@lahmeyer.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: incorrect MSDOSFS label fries administrative access to GEOM
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120044
>Category:       kern
>Synopsis:       [msdosfs] [geom] incorrect MSDOSFS label fries administrative access to GEOM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-geom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 27 15:40:11 UTC 2008
>Closed-Date:    Wed Aug 12 21:00:33 UTC 2009
>Last-Modified:  Wed Aug 12 21:00:33 UTC 2009
>Originator:     Bernard Steiner
>Release:        6.3-STABLE
>Organization:
>Environment:
FreeBSD grimma.anydomain.de 6.3-STABLE FreeBSD 6.3-STABLE #13: Fri Jan 25 20:23:36 CET 2008     root@grimma.anydomain.de:/usr/obj/usr/src/sys/GRIMMA  amd64

>Description:
An unexpected msdosfs label can fry GEOM.
I have an old memory stick which happens to have (had ;-) a non-standard
MSDOSFS label on it, viz:

Jan 26 11:28:34 grimma kernel: umass0: vendor 0x0c76 product 0x0005, rev 1.10/1.00, addr 3
Jan 26 11:28:34 grimma kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jan 26 11:28:34 grimma kernel: da0: (JetFlash Transcend 1.00) Removable Direct Access SCSI-2 device 
Jan 26 11:28:34 grimma kernel: da0: 1.000MB/s transfers
Jan 26 11:28:34 grimma kernel: da0: 61MB (126600 512 byte sectors: 64H 32S/T 61C)
Jan 26 11:28:35 grimma kernel: GEOM_LABEL: Label for provider da0 is msdosfs/(A0)(EA)(FF)(FF)(FF).

(I replaced less-than and greater-than in those lines)

Doing something like "gmirror status" while that memory stick is inserted
yields a nice "Cannot get GEOM tree: Unknown error: -1."  Note that the
operation of the actual gmirror (and glabel, geli) devices is not affected
afaik.

The same stick works perfectly after being re-mlabel-d to a decent name.
Stops working if the label is re-set to those unprintables...

>How-To-Repeat:
mlabel an msdosfs filesystem to 0xa0 0xea 0xff 0xff 0xff
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 28 00:24:50 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120044 

From: Jaakko Heinonen <jh@saunalahti.fi>
To: bug-followup@FreeBSD.org, bernard.steiner@lahmeyer.de
Cc:  
Subject: Re: kern/120044: [msdosfs] [geom] incorrect MSDOSFS label fries
	administrative access to GEOM
Date: Mon, 4 Feb 2008 18:13:51 +0200

 This bug is a duplicate of kern/104389
 (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/104389).
State-Changed-From-To: open->closed 
State-Changed-By: jilles 
State-Changed-When: Wed Aug 12 21:00:32 UTC 2009 
State-Changed-Why:  
duplicate of kern/104389 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120044 
>Unformatted:
