From owner-freebsd-bugs Tue Jul 14 12:50:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02621 for freebsd-bugs-outgoing; Tue, 14 Jul 1998 12:50:43 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02612 for ; Tue, 14 Jul 1998 12:50:42 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA03119; Tue, 14 Jul 1998 12:50:02 -0700 (PDT) Received: from gateman.zeus.leitch.com (gateman.zeus.leitch.com [204.187.61.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA01816 for ; Tue, 14 Jul 1998 12:44:38 -0700 (PDT) (envelope-from woods@tap.zeus.leitch.com) Received: from zeus.leitch.com (tap.zeus.leitch.com [204.187.61.10]) by gateman.zeus.leitch.com (8.8.5/8.7.3/1.0) with ESMTP id PAA26952; Tue, 14 Jul 1998 15:42:38 -0400 (EDT) Received: from brain.zeus.leitch.com (brain.zeus.leitch.com [204.187.61.32]) by zeus.leitch.com (8.7.5/8.7.3/1.0) with ESMTP id PAA03063; Tue, 14 Jul 1998 15:42:37 -0400 (EDT) Received: (from woods@localhost) by brain.zeus.leitch.com (8.8.8/8.8.8) id PAA03527; Tue, 14 Jul 1998 15:42:37 -0400 (EDT) (envelope-from woods@tap.zeus.leitch.com) Message-Id: <199807141942.PAA03527@brain.zeus.leitch.com> Date: Tue, 14 Jul 1998 15:42:37 -0400 (EDT) From: woods@zeus.leitch.com Reply-To: woods@zeus.leitch.com To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: erich@rrnet.com X-Send-Pr-Version: 3.2 Subject: kern/7282: some old and rarely used drivers have apparently become broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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