Skip to contentSkip to conversation

kmsan-use-stack_depot_save-instead-of-__stack_depot_save.patch removed from -mm tree

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

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kmsan: use stack_depot_save instead of __stack_depot_save
has been removed from the -mm tree. Its filename was
kmsan-use-stack_depot_save-instead-of-__stack_depot_save.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: kmsan: use stack_depot_save instead of __stack_depot_save
Date: Mon, 20 Nov 2023 18:47:12 +0100

Make KMSAN use stack_depot_save instead of __stack_depot_save, as it
always passes true to __stack_depot_save as the last argument.

---

 mm/kmsan/core.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
mm/kmsan/core.c renamed from mm/kmsan/core.c~kmsan-use-stack_depot_save-instead-of-__stack_depot_save +3 -4
@@ -76,7 +76,7 @@ depot_stack_handle_t kmsan_save_stack_wi
 	/* Don't sleep. */
 	flags &= ~(__GFP_DIRECT_RECLAIM | __GFP_KSWAPD_RECLAIM);
 
-	handle = __stack_depot_save(entries, nr_entries, flags, true);
+	handle = stack_depot_save(entries, nr_entries, flags);
 	return stack_depot_set_extra_bits(handle, extra);
 }
 
@@ -185,11 +185,10 @@ depot_stack_handle_t kmsan_internal_chai
 	/*
 	 * @entries is a local var in non-instrumented code, so KMSAN does not
 	 * know it is initialized. Explicitly unpoison it to avoid false
-	 * positives when __stack_depot_save() passes it to instrumented code.
+	 * positives when stack_depot_save() passes it to instrumented code.
 	 */
 	kmsan_internal_unpoison_memory(entries, sizeof(entries), false);
-	handle = __stack_depot_save(entries, ARRAY_SIZE(entries), __GFP_HIGH,
-				    true);
+	handle = stack_depot_save(entries, ARRAY_SIZE(entries), __GFP_HIGH);
 	return stack_depot_set_extra_bits(handle, extra_bits);
 }
 

_

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