Skip to contentSkip to conversation

kasan-save-alloc-stack-traces-for-mempool.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 29, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kasan: save alloc stack traces for mempool
has been removed from the -mm tree. Its filename was
kasan-save-alloc-stack-traces-for-mempool.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: kasan: save alloc stack traces for mempool
Date: Tue, 19 Dec 2023 23:28:56 +0100

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.

---

 include/linux/kasan.h |    7 +++--
 mm/kasan/common.c     |   50 ++++++++++++++++++++++++++++++++--------
 2 files changed, 44 insertions(+), 13 deletions(-)
include/linux/kasan.h renamed from include/linux/kasan.h~kasan-save-alloc-stack-traces-for-mempool +4 -3
@@ -303,9 +303,10 @@ void __kasan_mempool_unpoison_object(voi
  * mempool).
  *
  * This function unpoisons a slab allocation that was previously poisoned via
- * kasan_mempool_poison_object() without initializing its memory. For the
- * tag-based modes, this function does not assign a new tag to the allocation
- * and instead restores the original tags based on the pointer value.
+ * kasan_mempool_poison_object() and saves an alloc stack trace for it without
+ * initializing the allocation's memory. For the tag-based modes, this function
+ * does not assign a new tag to the allocation and instead restores the
+ * original tags based on the pointer value.
  *
  * This function operates on all slab allocations including large kmalloc
  * allocations (the ones returned by kmalloc_large() or by kmalloc() with the
mm/kasan/common.c renamed from mm/kasan/common.c~kasan-save-alloc-stack-traces-for-mempool +40 -10

68 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

kasan-stop-leaking-stack-trace-handles.patch