From yves.jaeger@aachen.utimaco.de  Wed Jul 12 03:47:17 2000
Return-Path: <yves.jaeger@aachen.utimaco.de>
Received: from Thingol.KryptoKom.DE (Thingol.KryptoKom.DE [194.245.91.1])
	by hub.freebsd.org (Postfix) with ESMTP id D192437BC22
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Jul 2000 03:47:14 -0700 (PDT)
	(envelope-from yves.jaeger@aachen.utimaco.de)
Received: (from root@localhost)
	by Thingol.KryptoKom.DE (8.9.1/8.9.3) id MAA24766
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Jul 2000 12:45:20 +0200
Received: from cirdan.kryptokom.de by KryptoWall via esmtpp (Version 1.0.2) id /var/KryptoWall/smtpp/kwa24761; Wed Jul 12 12:45:14 2000
Message-Id: <396C4CD0.1583F318@kryptokom.de>
Date: Wed, 12 Jul 2000 12:47:44 +0200
From: Yves Jaeger <yves.jaeger@aachen.utimaco.de>
To: FreeBSD-gnats-submit@freebsd.org
Subject: atapi-cd.c does not check CDIOCREADSUBCHANNEL data format

>Number:         19865
>Category:       kern
>Synopsis:       atapi-cd.c does not check CDIOCREADSUBCHANNEL data format
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 12 03:50:03 PDT 2000
>Closed-Date:    Tue Nov 14 01:01:17 PST 2000
>Last-Modified:  Tue Nov 14 01:01:49 PST 2000
>Originator:     Yves Jaeger
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Utimaco Safeware AG
>Environment:

        Kernel configuration that uses atapi-cd.c

>Description:

        cdcontrol shows the wrong media status if atapi-cd.c is used.

>How-To-Repeat:

        insert a disk in a cd-rom drive, run cdcontrol and then enter
the command
          status media
        then you'll see a media catalog information but no output should
displayed

>Fix:
        
*** atapi-cd.c.orig     Mon Jul 10 13:52:23 2000
--- atapi-cd.c  Mon Jul 10 13:57:24 2000
***************
*** 751,756 ****
--- 751,762 ----
              u_long len = args->data_len;
              int abslba, rellba;
  
+             /* the following 4 lines are inserted by yves jaeger on
jul 9, 2000                   */
+             /* currently supported is only the data_format
CD_CURRENT_POSITION                    */
+             /* TODO: support other values for
data_format                                         */
+             if (args->data_format != CD_CURRENT_POSITION)
+                 return (EINVAL);
+                                                               
              if (len > sizeof(data) ||
                  len < sizeof(struct cd_sub_channel_header))
                  return EINVAL;

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Jul 12 04:50:25 PDT 2000 
Responsible-Changed-Why:  
Over to the ata(4) maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19865 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Tue Nov 14 01:01:17 PST 2000 
State-Changed-Why:  


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