]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kmem: Add KASAN state transitions
authorMark Johnston <markj@FreeBSD.org>
Tue, 13 Apr 2021 21:40:01 +0000 (17:40 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 13 Apr 2021 21:42:21 +0000 (17:42 -0400)
commit2b914b85ddf4c25d112b2639bbbb7618641872b4
tree91181208ed7d587e03d728ac7fc5a0f510dec510
parent244f3ec642ed99a371c97b946b93b877d8be1756
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
sys/vm/vm_kern.c