]> Git Repo - linux.git/commit
kasan: save alloc stack traces for mempool
authorAndrey Konovalov <[email protected]>
Tue, 19 Dec 2023 22:28:56 +0000 (23:28 +0100)
committerAndrew Morton <[email protected]>
Fri, 29 Dec 2023 19:58:39 +0000 (11:58 -0800)
commit29d7355a9d05de9a6e38cc4d1146fb96c43853fb
tree298b492f9270c8fadd84f13c49a23174572c51fe
parent0cc9fdbf4a5273310779bd4779fcdfb4705438a6
kasan: save alloc stack traces for mempool

Update kasan_mempool_unpoison_object to properly poison the redzone and
save alloc strack traces for kmalloc and slab pools.

As a part of this change, split out and use a unpoison_slab_object helper
function from __kasan_slab_alloc.

[[email protected]: mark unpoison_slab_object() as static]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/05ad235da8347cfe14d496d01b2aaf074b4f607c.1703024586.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Cc: Alexander Lobakin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Breno Leitao <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Marco Elver <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
include/linux/kasan.h
mm/kasan/common.c
This page took 0.05699 seconds and 4 git commands to generate.