Skip to contentSkip to conversation

kasan-only-define-metadata-offsets-for-generic-mode.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 3, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kasan: only define metadata offsets for Generic mode
has been removed from the -mm tree. Its filename was
kasan-only-define-metadata-offsets-for-generic-mode.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: only define metadata offsets for Generic mode
Date: Mon, 5 Sep 2022 23:05:31 +0200

Hide the definitions of alloc_meta_offset and free_meta_offset under an ifdef CONFIG_KASAN_GENERIC check, as these fields are now only used when the Generic mode is enabled.

---

 include/linux/kasan.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/kasan.h renamed from include/linux/kasan.h~kasan-only-define-metadata-offsets-for-generic-mode +2 -0
@@ -98,8 +98,10 @@ static inline bool kasan_has_integrated_
 #ifdef CONFIG_KASAN
 
 struct kasan_cache {
+#ifdef CONFIG_KASAN_GENERIC
 	int alloc_meta_offset;
 	int free_meta_offset;
+#endif
 	bool is_kmalloc;
 };
 

_

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

kasan-fix-array-bounds-warnings-in-tests.patch