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
GitHub <noreply@github.com>Committed on Dec 1 2023, 7:50 PM
Parents
rG3e4bef52b084: Only provide execvpe(3) when needed
Branches
Unknown
Tags
Unknown