freebsd-nq/sys/sparc64/sparc64
Ryan Stone f2c2231e0c 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
..
ata_machdep.c
autoconf.c
bus_machdep.c
cache.c
cam_machdep.c
cheetah.c
clock.c
counter.c
db_disasm.c
db_hwwatch.c
db_interface.c
db_trace.c
dump_machdep.c Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
eeprom.c
elf_machdep.c
exception.S
gdb_machdep.c
genassym.c
identcpu.c
in_cksum.c
interrupt.S
intr_machdep.c Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather 2014-09-17 17:33:22 +00:00
iommu.c
jbusppm.c
locore.S
machdep.c Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00
mem.c Remove Giant from /dev/mem and /dev/kmem. It is definitely not needed 2015-01-24 12:51:15 +00:00
mp_exception.S
mp_locore.S
mp_machdep.c
nexus.c
ofw_machdep.c
pmap.c Complete r254667, do not destroy pmap lock if KVA allocation failed. 2014-08-16 08:31:25 +00:00
prof_machdep.c
rtc.c
rwindow.c
sc_machdep.c
schppm.c
spitfire.c
ssm.c
stack_machdep.c
support.S Fix typo revealed by using newer binutils 2014-10-10 14:18:33 +00:00
swtch.S
sys_machdep.c
tick.c
tlb.c
trap.c
tsb.c
uio_machdep.c
upa.c
vm_machdep.c Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
zeus.c