freebsd-skq/sys/powerpc
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
..
aim Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
booke CCSRBAR_VA is mpc85xx-specific, so add guards, and include the proper header 2015-03-31 05:29:44 +00:00
conf
cpufreq
fpu
include
mambo
mpc85xx
ofw
powermac
powerpc
ps3
pseries
psim