Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 1998 17:00:01 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/7282: some old and rarely used drivers have apparently become broken
Message-ID:  <199807150000.RAA10250@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/7282; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, woods@zeus.leitch.com
Cc: erich@rrnet.com
Subject: Re: kern/7282: some old and rarely used drivers have apparently become broken
Date: Wed, 15 Jul 1998 09:57:27 +1000

 >	It would seem as though all drivers were not converted to use
 >	the new driver ioctl() interface, i.e. the the one where driver
 >	ioctl() routines should not use copyin()/copyout() because this
 >	is done for them one level up.
 
 It's not new.  It's (much?) older than Net/3, much older than any
 FreeBSD driver.
 
 >	Possibly even mention in copyin.9 et al that these routines
 >	should not be used in driver ioctl() routines.
 
 But they should be used if the data is larger than will fit in the
 ioctl data.  labpc uses them to copy rather small data that probably
 should have been put in the ioctl data.  If DSI_SOFT_MODEM is
 configured, then sio uses copyin() to copy arbitrarly large data
 (large enough to use all of kernel memory :-().
 
 Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807150000.RAA10250>