freebsd-dev/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 Move the implementation of bus_space_barrier(9) to the inline function in 2013-10-24 17:06:41 +00:00
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 Split the pagequeues per NUMA domains, and split pageademon process 2013-08-07 16:36:38 +00:00
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 Retire smp_active. It was racey and caused demonstrated problems with 2014-04-26 20:27:54 +00:00
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 In sys/sparc64/sparc64/spitfire.c, prevent signed shift overflow by 2014-02-25 07:28:51 +00:00
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 Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
tick.c
tlb.c
trap.c
tsb.c
uio_machdep.c Delete stray clause 3 (Advertising clause) and renumber while i'm 2014-03-11 23:41:35 +00:00
upa.c
vm_machdep.c Fix integer truncation bug in malloc(9) 2015-04-01 12:42:26 +00:00
zeus.c