kfence, kasan: make KFENCE compatible with KASAN 42/281542/1
authorAlexander Potapenko <glider@google.com>
Tue, 3 Nov 2020 17:58:38 +0000 (18:58 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 20 Sep 2022 02:43:27 +0000 (11:43 +0900)
commit997a25305631d924fcaff06150a5cd87c98d8a10
tree1d4a5ca085544e105fc5f594079b372f623c7407
parentdc53d80a4c1a01a02b1e2d100d72fed4f6df7157
kfence, kasan: make KFENCE compatible with KASAN

Make KFENCE compatible with KASAN. Currently this helps test KFENCE
itself, where KASAN can catch potential corruptions to KFENCE state, or
other corruptions that may be a result of freepointer corruptions in the
main allocators.

Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Jann Horn <jannh@google.com>
Co-developed-by: Marco Elver <elver@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Alexander Potapenko <glider@google.com>
[port kfence feature to rpi-5.10.95]
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia2ef98d6a2c24d599b0646ca37a0312a201497b9
lib/Kconfig.kfence
mm/kasan/common.c
mm/kasan/generic.c