Page MenuHomeFreeBSD

malloc(9): Reject malloc(M_NEVERFREED)
ClosedPublic

Authored by bnovkov on Jul 31 2024, 6:18 PM.
Tags
None
Referenced Files
F93245622: D46199.id141608.diff
Sun, Sep 8, 10:39 AM
F93229734: D46199.id141834.diff
Sun, Sep 8, 7:39 AM
Unknown Object (File)
Sat, Sep 7, 7:10 PM
Unknown Object (File)
Sat, Sep 7, 5:55 PM
Unknown Object (File)
Sat, Sep 7, 5:55 PM
Unknown Object (File)
Sat, Sep 7, 5:55 PM
Unknown Object (File)
Sat, Sep 7, 5:48 PM
Unknown Object (File)
Sat, Sep 7, 10:59 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