diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2023-12-19 23:28:48 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-29 20:58:37 +0100 |
commit | 2e7c954c11af96aa1e0566a706f22152ef91d759 (patch) | |
tree | a9a8a0bb18ed84c80745650d2e99ca47edde7b4f /lib/idr.c | |
parent | kasan: document kasan_mempool_poison_object (diff) | |
download | linux-2e7c954c11af96aa1e0566a706f22152ef91d759.tar.xz linux-2e7c954c11af96aa1e0566a706f22152ef91d759.zip |
kasan: add return value for kasan_mempool_poison_object
Add a return value for kasan_mempool_poison_object that lets the caller
know whether the allocation is affected by a double-free or an
invalid-free bug. The caller can use this return value to stop operating
on the object.
Also introduce a check_page_allocation helper function to improve the code
readability.
Link: https://lkml.kernel.org/r/618af65273875fb9f56954285443279b15f1fcd9.1703024586.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Lobakin <alobakin@pm.me>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Breno Leitao <leitao@debian.org>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions