M_TEMP trouble in 13.0-CURRENT #0 r355131M

Hans Petter Selasky hps at selasky.org
Thu Jan 9 11:59:12 UTC 2020


Hi Jeff and Konstantin,

You have a logical breakage after the domainset patches for malloc. The 
size used for allocation statistics is not the same like for freeing 
causing messed up "vmstat -m".

Also you should audit the code for zero-sized allocations, because upon 
alloc, zero-sized is not counted, while on free it is.

See attached patch.

--HPS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: domainset.diff
Type: text/x-patch
Size: 997 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20200109/624e5c71/attachment.bin>


More information about the freebsd-current mailing list