freebsd-nq/sys/vm
Konstantin Belousov 63cdcaaead Properly handle possible underflow in vm_fault_prefault().
In vm_fault_prefault(), if backward count causes underflow in
calculation of
	starta = addra - backward * PAGE_SIZE;
then starta must be clipped to entry->start, instead of zero.
Clipping to zero allowed mapping outside of the map entries address
ranges, in particular, map at zero.

Submitted by:	Yanko Yankulov <yanko.yankulov@gmail.com>
Reviewed by:	alc
MFC after:	1 week
2017-02-24 08:09:16 +00:00
..
_vm_radix.h
default_pager.c
device_pager.c Consistently handle negative or wrapping offsets in the mmap(2) syscalls. 2017-02-12 21:05:44 +00:00
memguard.c
memguard.h
phys_pager.c
pmap.h
redzone.c
redzone.h
sg_pager.c Consistently handle negative or wrapping offsets in the mmap(2) syscalls. 2017-02-12 21:05:44 +00:00
swap_pager.c
swap_pager.h
uma_core.c
uma_dbg.c
uma_dbg.h
uma_int.h
uma.h
vm_domain.c
vm_domain.h
vm_extern.h Rework r313352. 2017-02-13 09:04:38 +00:00
vm_fault.c Properly handle possible underflow in vm_fault_prefault(). 2017-02-24 08:09:16 +00:00
vm_glue.c
vm_init.c Remove a redundant use of min(). 2017-01-05 03:13:45 +00:00
vm_kern.c Add a small allocator for exec_map entries. 2017-01-05 01:44:12 +00:00
vm_kern.h Add a small allocator for exec_map entries. 2017-01-05 01:44:12 +00:00
vm_map.c
vm_map.h
vm_meter.c
vm_mmap.c Rework r313352. 2017-02-13 09:04:38 +00:00
vm_object.c Avoid page lookups in the top-level object in vm_object_madvise(). 2017-01-30 18:51:43 +00:00
vm_object.h Consistently handle negative or wrapping offsets in the mmap(2) syscalls. 2017-02-12 21:05:44 +00:00
vm_page.c Over the years, the code and comments in vm_page_startup() have diverged in 2017-02-04 05:23:10 +00:00
vm_page.h Move bogus_page declaration to vm_page.h and initialization to vm_page.c. 2017-01-04 22:27:19 +00:00
vm_pageout.c try to fix RACCT_RSS accounting 2017-02-14 13:54:05 +00:00
vm_pageout.h
vm_pager.c Move bogus_page declaration to vm_page.h and initialization to vm_page.c. 2017-01-04 22:27:19 +00:00
vm_pager.h
vm_param.h
vm_phys.c Ifdef out the unused vm_rr_selectdomain(). 2017-02-02 17:44:55 +00:00
vm_phys.h
vm_radix.c
vm_radix.h
vm_reserv.c
vm_reserv.h
vm_unix.c
vm.h
vnode_pager.c Fix the contiguity once more. 2017-01-12 20:26:02 +00:00
vnode_pager.h