Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 1995 19:59:28 -0700
From:      David Greenman <davidg>
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
Message-ID:  <199505180259.TAA22929@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
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



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