1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sys/vm
David Greenman 5f55e84104 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
1995-05-18 02:59:26 +00:00
..
device_pager.c Accessing pages beyond the end of a mapped file results in internal 1995-05-18 02:59:26 +00:00
device_pager.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
kern_lock.c Moved some zero-initialized variables into .bss. Made code intended to be 1995-04-16 12:56:22 +00:00
lock.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
pmap.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
swap_pager.c Accessing pages beyond the end of a mapped file results in internal 1995-05-18 02:59:26 +00:00
swap_pager.h Changed "handle" from type caddr_t to void *; "handle" is several different 1995-05-10 18:56:09 +00:00
vm_extern.h Changed swap partition handling/allocation so that it doesn't 1995-05-14 03:00:10 +00:00
vm_fault.c Accessing pages beyond the end of a mapped file results in internal 1995-05-18 02:59:26 +00:00
vm_glue.c Moved some zero-initialized variables into .bss. Made code intended to be 1995-04-16 12:56:22 +00:00
vm_inherit.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
vm_init.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
vm_kern.c Special cased the handling of mb_map in the M_WAITOK case. kmem_malloc() 1995-03-15 07:52:06 +00:00
vm_kern.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
vm_map.c Moved some zero-initialized variables into .bss. Made code intended to be 1995-04-16 12:56:22 +00:00
vm_map.h Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
vm_meter.c Fixed some formatting weirdness that I overlooked in the previous commit. 1995-01-10 07:32:52 +00:00
vm_mmap.c Accessing pages beyond the end of a mapped file results in internal 1995-05-18 02:59:26 +00:00
vm_object.c Changed object hash list to be a list rather than a tailq. This saves 1995-05-02 05:57:11 +00:00
vm_object.h Changed object hash list to be a list rather than a tailq. This saves 1995-05-02 05:57:11 +00:00
vm_page.c Moved some zero-initialized variables into .bss. Made code intended to be 1995-04-16 12:56:22 +00:00
vm_page.h inline -> __inline. 1995-04-23 08:05:49 +00:00
vm_pageout.c Changed "handle" from type caddr_t to void *; "handle" is several different 1995-05-10 18:56:09 +00:00
vm_pageout.h Changes from John Dyson and myself: 1995-04-09 06:03:56 +00:00
vm_pager.c Changed "handle" from type caddr_t to void *; "handle" is several different 1995-05-10 18:56:09 +00:00
vm_pager.h Changed "handle" from type caddr_t to void *; "handle" is several different 1995-05-10 18:56:09 +00:00
vm_param.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
vm_prot.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
vm_swap.c Changed swap partition handling/allocation so that it doesn't 1995-05-14 03:00:10 +00:00
vm_unix.c Stop using vm_allocate and vm_deallocate. 1995-02-20 17:36:36 +00:00
vm_user.c Removed vm_allocate(), vm_deallocate(), and vm_protect() functions. The 1995-02-20 23:58:10 +00:00
vm_vmio.c John Dyson's work in progress. Not currently used. 1994-10-04 07:32:08 +00:00
vm.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00
vnode_pager.c Accessing pages beyond the end of a mapped file results in internal 1995-05-18 02:59:26 +00:00
vnode_pager.h These changes embody the support of the fully coherent merged VM buffer cache, 1995-01-09 16:06:02 +00:00