]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
malloc: Add state transitions for KASAN
authorMark Johnston <markj@FreeBSD.org>
Tue, 13 Apr 2021 21:40:27 +0000 (17:40 -0400)
committerMark Johnston <markj@FreeBSD.org>
Mon, 1 Nov 2021 14:03:36 +0000 (10:03 -0400)
commit9710b74dd0f46c58a603c0bee7fad7f5bc71a80f
tree324b285f7bae0efd7de73abe4890169f12e40616
parent2748ecec950de38d50f8a3c4ec917fd489cb4628
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)
sys/kern/kern_malloc.c