From owner-freebsd-commit Wed May 17 19:59:40 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA22958 for commit-outgoing; Wed, 17 May 1995 19:59:40 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA22942 for cvs-sys-outgoing; Wed, 17 May 1995 19:59:35 -0700 Received: (from davidg@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA22929 ; Wed, 17 May 1995 19:59:28 -0700 Date: Wed, 17 May 1995 19:59:28 -0700 From: David Greenman Message-Id: <199505180259.TAA22929@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/vm device_pager.c swap_pager.c vm_fault.c vm_mmap.c vnode_pager.c Sender: commit-owner@FreeBSD.org Precedence: bulk davidg 95/05/17 19:59:27 Modified: sys/vm device_pager.c swap_pager.c vm_fault.c vm_mmap.c vnode_pager.c Log: Accessing pages beyond the end of a mapped file results in internal inconsistencies in the VM system that eventually lead to a panic. These changes fix the behavior to conform to the behavior in SunOS, which is to deny faults to pages beyond the EOF (returning SIGBUS). Internally, this is implemented by requiring faults to be within the object size boundaries. These changes exposed another bug, namely that passing in an offset to mmap when trying to map an unnamed anonymous region also results in internal inconsistencies. In this case, the offset is forced to zero. Reviewed by: John Dyson and others