From nobody@FreeBSD.org  Mon Dec 17 14:10:00 2007
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 4154E16A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Dec 2007 14:10:00 +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 436E313C44B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Dec 2007 14:10:00 +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 lBHE9hpJ028855
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Dec 2007 14:09:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lBHE9hBW028854;
	Mon, 17 Dec 2007 14:09:43 GMT
	(envelope-from nobody)
Message-Id: <200712171409.lBHE9hBW028854@www.freebsd.org>
Date: Mon, 17 Dec 2007 14:09:43 GMT
From: Nikos Vassiliadis <nvass@teledomenet.gr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cdcontrol + "eject key" can eject mounted medium
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         118779
>Category:       kern
>Synopsis:       [ata] cdcontrol + "eject key" can eject mounted medium
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 17 14:20:01 UTC 2007
>Closed-Date:    Fri Jul 04 13:08:34 UTC 2008
>Last-Modified:  Fri Jul 04 13:08:34 UTC 2008
>Originator:     Nikos Vassiliadis
>Release:        6-STABLE
>Organization:
n/a
>Environment:
FreeBSD iris.teledomenet.gr 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Mon Dec 17 14:44:02 EET 2007     nik@iris.teledomenet.gr:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Using cdcontrol and the eject key can result in
ejecting a mounted medium.

Other info:
pciconf
atapci1@pci0:31:2:      class=0x01018f card=0x42468086 chip=0x24d18086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801EB (ICH5) SATA Controller'
    class      = mass storage
    subclass   = ATA

atacontrol info ata1
Master: acd0 <JLMS XJ-HD166S/DS1A> ATA/ATAPI revision 5
Slave:   ad3 <WDC WD205BA/P76OA30A> ATA/ATAPI revision 4

atacontrol cap acd0 

Protocol              ATA/ATAPI revision 5
device model          JLMS XJ-HD166S
serial number         
firmware revision     DS1A
cylinders             0
heads                 0
sectors/track         0
lba supported         
lba48 not supported       
dma supported
overlap not supported

Feature                      Support  Enable    Value           Vendor
write cache                    no       no
read ahead                     no       no
Tagged Command Queuing (TCQ)   no       no      0/0x00
SMART                          no       no
microcode download             no       no
security                       no       no
power management               no       no
advanced power management      no       no      0/0x00
automatic acoustic management  no       no      0/0x00  0/0x00

>How-To-Repeat:
mount /cdrom
cdcontrol eject

press the eject key and the medium will be ejected

>Fix:


>Release-Note:
>Audit-Trail:

From: Jaakko Heinonen <jh@saunalahti.fi>
To: bug-followup@FreeBSD.org, nvass@teledomenet.gr
Cc:  
Subject: Re: kern/118779: [ata] cdcontrol + "eject key" can eject mounted
	medium
Date: Tue, 1 Jul 2008 13:27:02 +0300

 There is a patch in kern/125139
 (http://www.freebsd.org/cgi/query-pr.cgi?pr=125139) which should fix the
 issue.
 
 -- 
 Jaakko

From: Nikos Vassiliadis <nvass@teledomenet.gr>
To: Jaakko Heinonen <jh@saunalahti.fi>
Cc: bug-followup@freebsd.org
Subject: Re: kern/118779: [ata] cdcontrol + "eject key" can eject mounted medium
Date: Fri, 4 Jul 2008 15:16:28 +0300

 On Tuesday 01 July 2008 13:27:02 Jaakko Heinonen wrote:
 > There is a patch in kern/125139
 > (http://www.freebsd.org/cgi/query-pr.cgi?pr=125139) which should fix the
 > issue.
 
 Yes, it does. Thanks!
 
 Nikos
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jul 4 13:08:08 UTC 2008 
State-Changed-Why:  
See the patch in kern/125139. 

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