NetBSD Problem Report #317

From gnats  Sat Jul  2 05:35:52 1994
Received: from relay.hp.com (relay.hp.com [15.255.152.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id FAA19169 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 2 Jul 1994 05:35:52 -0700
Message-Id: <199407021212.IAA07560@sussex.hudson.ma>
Date: Sat, 2 Jul 1994 08:12:35 -0400
From: John Brezak <brezak@ch.hp.com>
Reply-To: brezak@ch.hp.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: scsi/scsi_ioctl leaves SCIOCCOMMAND ifdef'ed out
X-Send-Pr-Version: 3.2

>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
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 02 05:50:06 +0000 1994
>Closed-Date:    Thu Dec 01 11:15:20 +0000 1994
>Last-Modified:  
>Originator:     John Brezak
>Release:        0.9B
>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
>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:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Thu Dec 1 03:15:20 PST 1994 
State-Changed-Why:  
It's been implemented, though I don't know that anyone has tested it. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.