HomeFreeBSD

malloc: Add state transitions for KASAN

Description

malloc: Add state transitions for KASAN

  • Reuse some REDZONE bits to keep track of the requested and allocated sizes, and use that to provide red zones.
  • As in UMA, disable memory trashing to avoid unnecessary CPU overhead.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 06a53ecf24005b3a74b85ecc4b504a401ac26cd0)

Details

Provenance
markjAuthored on Apr 13 2021, 9:40 PM
Parents
rG2748ecec950d: execve: Mark exec argument buffers
Branches
Unknown
Tags
Unknown