Page MenuHomeFreeBSD

malloc(9): Reject malloc(M_NEVERFREED)
ClosedPublic

Authored by bnovkov on Jul 31 2024, 6:18 PM.
Tags
None
Referenced Files
F107507340: D46199.diff
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
Unknown Object (File)
Sep 7 2024, 7:10 PM
Unknown Object (File)
Sep 7 2024, 5:55 PM
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

Lint
Lint Skipped
Unit
Tests Skipped