diff options
author | 2023-12-19 23:28:58 +0100 | |
---|---|---|
committer | 2023-12-29 11:58:39 -0800 | |
commit | 413643f3a3e2fe378dbd9f078ec119abc4539a38 (patch) | |
tree | 983dc29f3596d652da02f683317a75226f2c007a /include/linux/mempool.h | |
parent | mempool: skip slub_debug poisoning when KASAN is enabled (diff) | |
download | wireguard-linux-413643f3a3e2fe378dbd9f078ec119abc4539a38.tar.xz wireguard-linux-413643f3a3e2fe378dbd9f078ec119abc4539a38.zip |
mempool: use new mempool KASAN hooks
Update the mempool code to use the new mempool KASAN hooks.
Rely on the return value of kasan_mempool_poison_object and
kasan_mempool_poison_pages to prevent double-free and invalid-free bugs.
Link: https://lkml.kernel.org/r/d36fc4a6865bdbd297cadb46b67641d436849f4c.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 'include/linux/mempool.h')
0 files changed, 0 insertions, 0 deletions