Page MenuHomeFreeBSD

malloc(9): Reject malloc(M_NEVERFREED)
ClosedPublic

Authored by bnovkov on Jul 31 2024, 6:18 PM.
Tags
None
Referenced Files
F108784859: D46199.diff
Mon, Jan 27, 10:32 PM
Unknown Object (File)
Sun, Jan 26, 9:38 PM
Unknown Object (File)
Wed, Jan 15, 5:01 AM
Unknown Object (File)
Nov 29 2024, 2:22 PM
Unknown Object (File)
Nov 16 2024, 7:05 PM
Unknown Object (File)
Oct 3 2024, 3:13 PM
Unknown Object (File)
Sep 8 2024, 10:39 AM
Unknown Object (File)
Sep 8 2024, 7:39 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable