HomeFreeBSD

malloc(9): Check for M_NEVERFREED

Description

malloc(9): Check for M_NEVERFREED

The recently introduced M_NEVERFREED flag is not meant to be used for
regular malloc requests. Enforce this by checking for M_NEVERFREED
in malloc_dbg.

Reviewed by: alc, kib, markj
Differential Revision: https://reviews.freebsd.org/D46199

Details

Provenance
bnovkovAuthored on Jul 31 2024, 5:43 PM
Reviewer
alc
Differential Revision
D46199: malloc(9): Reject malloc(M_NEVERFREED)
Parents
rG31cc65708c66: man9: Document M_NEVERFREED and VM_ALLOC_NOFREE
Branches
Unknown
Tags
Unknown