Summary: | DEBUG_MEMGUARD and INVARIANTS duplicate "double-free" detection logic | ||
---|---|---|---|
Product: | Base System | Reporter: | Enji Cooper <ngie> |
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Works As Intended | ||
Severity: | Affects Some People | CC: | emaste, markj |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Enji Cooper
2014-07-24 18:04:19 UTC
memguard targets specific malloc types and zones, whereas UMA does general use-after-free and double free checking for all zones (with some constraints). Compiling memguard into a kernel does not enable it, you have to point it at a particular zone (which the repro steps don't do). |