Subject: kern/20231: Invoking scsictl on /dev/ses0 causes panic
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thesing@cs.uni-sb.de>
List: netbsd-bugs
Date: 02/07/2003 10:06:26
>Number:         20231
>Category:       kern
>Synopsis:       Invoking scsictl on /dev/ses0 causes kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 07 01:07:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stephan Thesing
>Release:        NetBSD 1.6N
>Organization:
=  Tel.: +49-681-302-5571      = Universitaet des Saarlandes =
=  Fax.: +49-681-302-3065      = Postfach 15 11 50           =
=  Compiler Research Group     = 66041 Saarbruecken          =
=  FR 6.2 - Informatik         = GERMANY                     =
>Environment:
	
	
System: NetBSD gargoyle.cs.uni-sb.de 1.6N NetBSD 1.6N (Gargoyle ST 22012003) #0: Thu Feb 6 15:13:35 CET 2003 thesing@gargoyle.cs.uni-sb.de:/usr/src/sys/arch/i386/compile/Gargoyle i386
Architecture: i386
Machine: i386
>Description:
Invoking the `scsictl' command on the SCSI Enclosure Device panics the kernel.
This is because of a typo (or a cut&paste error:-) in the function
sesioctl, where the wrong argument is passed to the scsipi_ioctl function.
	
>How-To-Repeat:
  scsictl /dev/ses0 identify
	
>Fix:
 This patch corrects the error by passing the right arguments:-)

--- dev/scsipi/ses.c.orig	Fri Feb  7 09:51:42 2003
+++ dev/scsipi/ses.c	Fri Feb  7 09:47:23 2003
@@ -485,7 +485,7 @@
 
 	default:
 		error = scsipi_do_ioctl(ssc->sc_periph,
-			    dev, cmd, addr, flag, p);
+			    dev, cmd, arg_addr, flag, p);
 		break;
 	}
 	return (error);
	
>Release-Note:
>Audit-Trail:
>Unformatted: