Subject: kern/317: scsi/scsi_ioctl leaves SCIOCCOMMAND ifdef'ed out
To: None <gnats-admin>
From: John Brezak <brezak@ch.hp.com>
List: netbsd-bugs
Date: 07/02/1994 05:50:08
>Number:         317
>Category:       kern
>Synopsis:       The SCIOCCOMMAND is ifdef'ed out with a comment that it needs to be redone to use copyin/out.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul  2 05:50:06 1994
>Originator:     John Brezak
>Organization:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Brezak                    UUCP:     uunet!apollo.hp!brezak
 Hewlett Packard/Apollo         Internet: brezak@ch.hp.com
 300 Apollo Drive               Phone:    (508) 436-4915
 Chelmsford, Massachusetts      Fax:      (508) 436-5103
>Release:        0.9B
>Environment:
	
System: NetBSD sussex 0.9B NetBSD 0.9B (SUSSEX) #13: Mon Jun 13 08:38:44 EDT 1994 brezak@sussex:/u0/src/netbsd/sys/arch/i386/compile/SUSSEX i386


>Description:
In /sys/scsi/scsi_ioctl.c the SCIOCCOMMAND ioctl is ifdef'ed out waiting
to be fixed to use copyin/copyout. Here are the comments from the section.

#ifdef notyet /* XXXX Needs to be redone to use copyin/out! */
	case SCIOCCOMMAND: {
		/*
		 * You won't believe this, but the arg copied in
 		 * from the user space, is on the kernel stack
		 * for this process, so we can't write
		 * to it at interrupt time..
		 * we need to copy it in and out!
		 * Make a static copy using malloc!
		 */

This basically make using the SCSI user passthru impossible. This is just
a friendly reminder to get this implemented soon.
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------