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)
Mar 8 2024, 5:08 PM
Unknown Object (File)
Dec 20 2023, 6:20 AM
Unknown Object (File)
Sep 1 2023, 9:28 PM
Unknown Object (File)
Sep 1 2023, 9:25 PM
Unknown Object (File)
Sep 1 2023, 9:25 PM
Unknown Object (File)
Sep 1 2023, 8:59 PM
Unknown Object (File)
Jun 30 2023, 12:51 PM
Unknown Object (File)
Jun 30 2023, 12:49 PM
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