diff options
author | Mark Johnston <markj@FreeBSD.org> | 2025-03-23 13:42:40 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2025-03-23 13:50:41 +0000 |
commit | 74361d693aec892b01c1553bda7176f8d341b2ff (patch) | |
tree | 91dfe3a68414ebb0f7b8457f4a9acd0a17e9ffb0 /share/doc/psd/20.ipctut/fig8.pic | |
parent | 574816356834cb99295b124be0ec34bd9e0b9c72 (diff) |
malloc: Fix DEBUG_REDZONE for contigmalloc()
When free() was adapted to support allocations originating from
contigmalloc(), redzone(9) support was not included. redzone(9)
involves adjusting the pointer to freed memory before looking up the
slab cookie, so it's not straightforward to make contigmalloc() opt out
of redzone support.
Thus, augment contigmalloc() to support redzone.
Reported by: glebius
Tested by: dhw
MFC after: 2 weeks
Fixes: 9e6544dd6e02 ("malloc(9): extend contigmalloc(9) by a "slab cookie"")
Diffstat (limited to 'share/doc/psd/20.ipctut/fig8.pic')
0 files changed, 0 insertions, 0 deletions