Page MenuHomeFreeBSD

mbuf zones: take out the trash
ClosedPublic

Authored by rlibby on Nov 27 2019, 7:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 20, 12:29 PM
Unknown Object (File)
Mon, Jan 19, 5:31 PM
Unknown Object (File)
Sat, Jan 17, 10:39 PM
Unknown Object (File)
Sat, Jan 10, 3:09 AM
Unknown Object (File)
Dec 14 2025, 1:15 AM
Unknown Object (File)
Dec 3 2025, 12:10 AM
Unknown Object (File)
Nov 27 2025, 1:57 PM
Unknown Object (File)
Nov 18 2025, 5:25 AM
Subscribers

Details

Summary

The mbuf zones were explicitly specifying the uma trash procedures on
zcreate, conditionally on INVARIANTS, because that used to be necessary
in order to get use-after-free checking for uma zones with non-empty
constructors or destructors. After r355137 uma automatically invokes
the trash constructor and destructor as long as no init and fini are
specified. This now allows the mbuf zones to pass their constructors
and destructors without needing to add on the uma trash procedures
conditionally.

Test Plan

kyua test -k /usr/tests/sys/Kyuafile

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27819
Build 25998: arc lint + arc unit