Skip to contentSkip to conversation

kmsan-export-kmsan_handle_urb.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Dec 21, 2022 Stable branch

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kmsan: export kmsan_handle_urb
has been removed from the -mm tree. Its filename was
kmsan-export-kmsan_handle_urb.patch

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

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: kmsan: export kmsan_handle_urb
Date: Thu, 15 Dec 2022 17:26:57 +0100

USB support can be in a loadable module, and this causes a link failure with KMSAN:

ERROR: modpost: "kmsan_handle_urb" [drivers/usb/core/usbcore.ko] undefined!

Export the symbol so it can be used by this module.

Fixes 553a80188a5d ("kmsan: handle memory sent to/from USB")
Cc Dmitry Vyukov <[email protected]>
Cc Marco Elver <[email protected]>

---

 mm/kmsan/hooks.c |    1 +
 1 file changed, 1 insertion(+)
mm/kmsan/hooks.c renamed from mm/kmsan/hooks.c~kmsan-export-kmsan_handle_urb +1 -0
@@ -260,6 +260,7 @@ void kmsan_handle_urb(const struct urb *
 					       urb->transfer_buffer_length,
 					       /*checked*/ false);
 }
+EXPORT_SYMBOL_GPL(kmsan_handle_urb);
 
 static void kmsan_handle_dma_page(const void *addr, size_t size,
 				  enum dma_data_direction dir)

_

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