freebsd-skq/sys/vm
rstone 57feb6fb43 Fix integer truncation bug in malloc(9)
A couple of internal functions used by malloc(9) and uma truncated
a size_t down to an int.  This could cause any number of issues
(e.g. indefinite sleeps, memory corruption) if any kernel
subsystem tried to allocate 2GB or more through malloc.  zfs would
attempt such an allocation when run on a system with 2TB or more
of RAM.

Note to self: When this is MFCed, sparc64 needs the same fix.

Differential revision:	https://reviews.freebsd.org/D2106
Reviewed by:	kib
Reported by:	Michael Fuckner <michael@fuckner.net>
Tested by:	Michael Fuckner <michael@fuckner.net>
MFC after:	2 weeks
2015-04-01 12:42:26 +00:00
..
_vm_radix.h
default_pager.c Fix mis-spelling of bits and types names in the 2014-11-04 19:56:04 +00:00
device_pager.c
memguard.c Add comments about CTLFLAG_RDTUN vs. TUNABLE_INT_FETCH. 2015-03-26 05:20:18 +00:00
memguard.h
phys_pager.c
pmap.h
redzone.c
redzone.h
sg_pager.c
swap_pager.c Make swapper release orphaned (lost) GEOM provider. 2015-03-26 17:21:12 +00:00
swap_pager.h
uma_core.c Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
uma_dbg.c
uma_dbg.h
uma_int.h Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
uma.h Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
vm_extern.h
vm_fault.c Introduce vm_object_color() and use it in mmap(2) to set the color of 2015-03-21 17:56:55 +00:00
vm_glue.c Add kernel option KSTACK_USAGE_PROF to sample the stack depth on 2014-10-04 18:38:14 +00:00
vm_init.c
vm_kern.c Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
vm_kern.h
vm_map.c vmspace_release() may sleep if the last reference is being released, 2015-01-24 16:59:38 +00:00
vm_map.h
vm_meter.c
vm_mmap.c Introduce vm_object_color() and use it in mmap(2) to set the color of 2015-03-21 17:56:55 +00:00
vm_object.c Correct a typo in vm_object_backing_scan() that originated in r254141. 2015-03-07 04:18:40 +00:00
vm_object.h Introduce vm_object_color() and use it in mmap(2) to set the color of 2015-03-21 17:56:55 +00:00
vm_page.c Add comments about CTLFLAG_RDTUN vs. TUNABLE_INT_FETCH. 2015-03-26 05:20:18 +00:00
vm_page.h Add flag VM_ALLOC_NOWAIT for vm_page_grab() that prevents sleeping and 2014-12-22 09:02:21 +00:00
vm_pageout.c - Eliminate pagequeue locking in the dirty code in vm_pageout_scan(). 2015-03-28 02:36:49 +00:00
vm_pageout.h
vm_pager.c o Enhance vm_pager_free_nonreq() function: 2015-03-17 19:19:19 +00:00
vm_pager.h o Enhance vm_pager_free_nonreq() function: 2015-03-17 19:19:19 +00:00
vm_param.h
vm_phys.c Revert r279932; this is going to be fixed in the sbuf code instead. 2015-03-14 13:00:37 +00:00
vm_phys.h The physical memory allocator supports the use of distinct free lists for 2014-12-31 00:54:38 +00:00
vm_radix.c
vm_radix.h
vm_reserv.c Revert r279932; this is going to be fixed in the sbuf code instead. 2015-03-14 13:00:37 +00:00
vm_reserv.h
vm_unix.c
vm_zeroidle.c
vm.h
vnode_pager.c Catch up on r271387 and remove unused parameter from 2015-03-30 22:49:26 +00:00
vnode_pager.h Merge from projects/sendfile: 2014-11-23 12:01:52 +00:00