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)
Sat, Jan 4, 2:28 AM
Unknown Object (File)
Wed, Dec 25, 5:48 AM
Unknown Object (File)
Thu, Dec 19, 3:46 PM
Unknown Object (File)
Nov 12 2024, 1:30 AM
Unknown Object (File)
Nov 7 2024, 4:50 PM
Unknown Object (File)
Oct 5 2024, 10:49 PM
Unknown Object (File)
Sep 25 2024, 11:55 PM
Unknown Object (File)
Sep 24 2024, 9:00 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable