Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 1998 15:42:37 -0400 (EDT)
From:      woods@zeus.leitch.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        erich@rrnet.com
Subject:   kern/7282: some old and rarely used drivers have apparently become broken
Message-ID:  <199807141942.PAA03527@brain.zeus.leitch.com>

next in thread | raw e-mail | index | archive | help

>Number:         7282
>Category:       kern
>Synopsis:       some old and rarely used drivers have apparently become broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 12:50:02 PDT 1998
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

>Description:

	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.

>How-To-Repeat:

	Write a driver the old fashioned (and still documented way) that
	uses copyin()/copyout() in its ioctl() routine and then spend
	days wondering why attempts to use the new driver's ioctl() fail
	with EFAULT.

>Fix:
	
	Finish hacking all the drivers to the new kernel interface.
	This probably only means sys/i386/isa/labpc.c, but I've not
	checked thoroughly.

	Document more thoroughly the driver/kernel interface.

	Update the available copy of "FreeBSD Device Driver Writer's
	Guide" (Eric L. Hernes, May 29, 1996).

	Possibly even mention in copyin.9 et al that these routines
	should not be used in driver ioctl() routines.

>Audit-Trail:
>Unformatted:

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?199807141942.PAA03527>