HomeFreeBSD

MFC r280957

Description

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.

Details

Provenance
rstoneAuthored on
Parents
rS287944: Eliminate (many) unnecessary calls to pmap_remove_all(). Pages from objects
Branches
Unknown
Tags
Unknown