HomeFreeBSD

Use M_NEXTFIT in memguard(9).

Description

Use M_NEXTFIT in memguard(9).

memguard(9) wants to avoid reuse of freed addresses for as long as
possible. Previously it maintained a racily updated cursor which was
passed to vmem_xalloc(9) as the minimum address. However, vmem will
not in general return the lowest free address in the arena, so this
trick only really works until the cursor has wrapped around the first
time.

Reported by: alc
Reviewed by: alc
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17227

Details

Provenance
markjAuthored on
Reviewer
alc
Differential Revision
D17227: Use M_NEXTFIT in memguard.
Parents
rS347949: Implement the M_NEXTFIT allocation strategy for vmem(9).
Branches
Unknown
Tags
Unknown