]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r280957
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Sep 2015 23:31:44 +0000 (23:31 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 17 Sep 2015 23:31:44 +0000 (23:31 +0000)
commit63bfeb71a12a1258701a5203fe564e0ac7c7eed4
tree0e2ce9e28f39248b1d87c63f4962c025c0735e6e
parent34d4d8f2831983d2e73faf98e47f38631dfd7085
MFC r280957

  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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@287945 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
15 files changed:
sys/amd64/amd64/uma_machdep.c
sys/i386/i386/pmap.c
sys/ia64/ia64/uma_machdep.c
sys/kern/kern_mbuf.c
sys/kern/subr_busdma_bufalloc.c
sys/kern/subr_vmem.c
sys/mips/mips/uma_machdep.c
sys/powerpc/aim/mmu_oea64.c
sys/powerpc/aim/slb.c
sys/powerpc/aim/uma_machdep.c
sys/sparc64/sparc64/vm_machdep.c
sys/sys/busdma_bufalloc.h
sys/vm/uma.h
sys/vm/uma_core.c
sys/vm/uma_int.h