Date: Thu, 9 Jan 2020 16:37:13 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Mark Johnston <markj@freebsd.org> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, current@freebsd.org, Jeff Roberson <jeff@freebsd.org>, Konstantin Belousov <kib@freebsd.org> Subject: Re: M_TEMP trouble in 13.0-CURRENT #0 r355131M Message-ID: <e90bc64a-f8aa-6280-c26c-20d8f9b68e21@selasky.org> In-Reply-To: <20200109151648.GA1953@raichu> References: <4164.1578563950@critter.freebsd.dk> <4e52b23e-32ed-6556-a74e-22c809a17fe0@selasky.org> <f0c4c466-c20f-8824-0138-6b5d45004256@selasky.org> <100f4e72-ef8b-07dc-b1e1-2a3ef4853d31@selasky.org> <20200109151648.GA1953@raichu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-01-09 16:16, Mark Johnston wrote: >> Also you should audit the code for zero-sized allocations, because upon >> alloc, zero-sized is not counted, while on free it is. > Can you explain further? A zero-sized allocation should be rounded up to > 16 bytes in all paths. > If the zero-sized allocation is rounded to 16-bytes, I don't see any problem. Thank you! --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e90bc64a-f8aa-6280-c26c-20d8f9b68e21>