HomeFreeBSD

Fix memguard(9) in kernels with INVARIANTS enabled.

Description

Fix memguard(9) in kernels with INVARIANTS enabled.

With r284861, UMA zones use the trash ctor and dtor by default. This is
incompatible with memguard, which frees the backing page when the item
is freed. Modify the UMA debug functions to be no-ops if the item was
allocated from memguard. This also fixes constructors such as
mb_ctor_pack(), which invokes the trash ctor in addition to performing
some initialization.

Reviewed by: glebius
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D6562

Details

Provenance
markjAuthored on
Reviewer
glebius
Differential Revision
D6562: Fix memguard(9) when INVARIANTS is enabled.
Parents
rS301175: Add Landon Fuller as a committer. Welcome!
Branches
Unknown
Tags
Unknown