HomeFreeBSD

kmem: Add KASAN state transitions

Description

kmem: Add KASAN state transitions

Memory allocated with kmem_* is unmapped upon free, so KASAN doesn't
provide a lot of benefit, but since allocations are always a multiple of
the page size we can create a redzone when the allocation request size
is not a multiple of the page size.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29458

Details

Provenance
markjAuthored on Apr 13 2021, 9:40 PM
Differential Revision
D29458: kmem: Add KASAN state transitions
Parents
rG244f3ec642ed: kstack: Add KASAN state transitions
Branches
Unknown
Tags
Unknown