From owner-freebsd-commit Fri Oct 13 22:25:59 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA24826 for freebsd-commit-outgoing; Fri, 13 Oct 1995 22:25:59 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA24814 for cvs-all-outgoing; Fri, 13 Oct 1995 22:25:56 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA24804 for cvs-sys-outgoing; Fri, 13 Oct 1995 22:25:54 -0700 Received: (from bde@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA24793 ; Fri, 13 Oct 1995 22:25:47 -0700 Date: Fri, 13 Oct 1995 22:25:47 -0700 From: Bruce Evans Message-Id: <199510140525.WAA24793@freefall.freebsd.org> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/i386 conf.c Sender: owner-commit@FreeBSD.org Precedence: bulk bde 95/10/13 22:25:46 Modified: sys/i386/i386 conf.c Log: Don't allow mmapping of physical page 6 (ENXIO). nxmmap() returned a bogus value as well as having a bogus type. Some drivers use nxmmap() for configured devices (`nx' functions should only be used for unconfigured devices). These drivers allowed mmapping physical page 6, which may have interesting contents. vm has kludges to avoid the same bug with nullop() returning page 0 and enodev() returning page 19 (ENODEV), but didn't handle enxio() returning page 6. vm is the wrong place to handle these bugs.