HomeFreeBSD

ZIO: Add overflow checks for linear buffers

Description

ZIO: Add overflow checks for linear buffers

Since we use a limited set of kmem caches, quite often we have unused
memory after the end of the buffer. Put there up to a 512-byte canary
when built with debug to detect buffer overflows at the free time.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15553

Details

Provenance
mavAuthored on Dec 1 2023, 7:50 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 9 2024, 12:11 AM
Parents
rGad47eca195d0: ZIL: Assert record sizes in different places
Branches
Unknown
Tags
Unknown