Skip to contentSkip to conversation

kasan-drop-config_kasan_generic-check-from-kasan_init_cache_meta.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: drop CONFIG_KASAN_GENERIC check from kasan_init_cache_meta
has been removed from the -mm tree. Its filename was
kasan-drop-config_kasan_generic-check-from-kasan_init_cache_meta.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: drop CONFIG_KASAN_GENERIC check from kasan_init_cache_meta
Date: Mon, 5 Sep 2022 23:05:28 +0200

As kasan_init_cache_meta() is only defined for the Generic mode, it does not require the CONFIG_KASAN_GENERIC check.

---

 mm/kasan/generic.c |    6 ------
 1 file changed, 6 deletions(-)
mm/kasan/generic.c renamed from mm/kasan/generic.c~kasan-drop-config_kasan_generic-check-from-kasan_init_cache_meta +0 -6
@@ -367,12 +367,6 @@ void kasan_init_cache_meta(struct kmem_c
 		/* Continue, since free meta might still fit. */
 	}
 
-	/* Only the generic mode uses free meta or flexible redzones. */
-	if (!IS_ENABLED(CONFIG_KASAN_GENERIC)) {
-		cache->kasan_info.free_meta_offset = KASAN_NO_FREE_META;
-		return;
-	}
-
 	/*
 	 * Add free meta into redzone when it's not possible to store
 	 * it in the object. This is the case when:

_

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

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