Skip to contentSkip to conversation

kasan-use-unchecked-__memset-internally.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 18, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kasan: use unchecked __memset internally
has been removed from the -mm tree. Its filename was
kasan-use-unchecked-__memset-internally.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: use unchecked __memset internally
Date: Fri, 6 Oct 2023 17:18:44 +0200

KASAN code is supposed to use the unchecked __memset implementation when accessing its metadata.

Change uses of memset to __memset in mm/kasan/.

Fixes 59e6e098d1c1 ("kasan: introduce kasan_complete_mode_report_info")
Fixes 3c5c3cfb9ef4 ("kasan: support backing vmalloc space with real shadow memory")
Cc Alexander Potapenko <[email protected]>
Cc Andrey Ryabinin <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc kernel test robot <[email protected]>

---

 mm/kasan/report.c |    4 ++--
 mm/kasan/shadow.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
mm/kasan/report.c renamed from mm/kasan/report.c~kasan-use-unchecked-__memset-internally +2 -2
@@ -538,7 +538,7 @@ void kasan_report_invalid_free(void *ptr
 
 	start_report(&flags, true);
 
-	memset(&info, 0, sizeof(info));
+	__memset(&info, 0, sizeof(info));
 	info.type = type;
 	info.access_addr = ptr;
 	info.access_size = 0;
@@ -576,7 +576,7 @@ bool kasan_report(const void *addr, size
 
 	start_report(&irq_flags, true);
 
-	memset(&info, 0, sizeof(info));
+	__memset(&info, 0, sizeof(info));
 	info.type = KASAN_REPORT_ACCESS;
 	info.access_addr = addr;
 	info.access_size = size;
mm/kasan/shadow.c renamed from mm/kasan/shadow.c~kasan-use-unchecked-__memset-internally +1 -1
@@ -324,7 +324,7 @@ static int kasan_populate_vmalloc_pte(pt
 	if (!page)
 		return -ENOMEM;
 
-	memset((void *)page, KASAN_VMALLOC_INVALID, PAGE_SIZE);
+	__memset((void *)page, KASAN_VMALLOC_INVALID, PAGE_SIZE);
 	pte = pfn_pte(PFN_DOWN(__pa(page)), PAGE_KERNEL);
 
 	spin_lock(&init_mm.page_table_lock);

_

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