f2c2231e0c
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 |
||
---|---|---|
.. | ||
autoconf.c | ||
bcopy.S | ||
bus_space_fdt.c | ||
bus_space_generic.c | ||
busdma_machdep.c | ||
cache_mipsNN.c | ||
cache.c | ||
cpu.c | ||
db_disasm.c | ||
db_interface.c | ||
db_trace.c | ||
dump_machdep.c | ||
elf_machdep.c | ||
elf_trampoline.c | ||
exception.S | ||
fp.S | ||
freebsd32_machdep.c | ||
gdb_machdep.c | ||
genassym.c | ||
in_cksum.c | ||
inckern.S | ||
intr_machdep.c | ||
libkern_machdep.c | ||
locore.S | ||
machdep.c | ||
mem.c | ||
minidump_machdep.c | ||
mp_machdep.c | ||
mpboot.S | ||
nexus.c | ||
octeon_cop2_swtch.S | ||
octeon_cop2.c | ||
pm_machdep.c | ||
pmap.c | ||
ptrace_machdep.c | ||
sc_machdep.c | ||
stack_machdep.c | ||
stdatomic.c | ||
support.S | ||
swtch.S | ||
sys_machdep.c | ||
tick.c | ||
tlb.c | ||
trap.c | ||
uio_machdep.c | ||
uma_machdep.c | ||
vm_machdep.c |