linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: export copy_to_kernel_nofault
@ 2024-10-18 15:11 Arnd Bergmann
  2024-10-18 15:12 ` David Hildenbrand
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Arnd Bergmann @ 2024-10-18 15:11 UTC (permalink / raw)
  To: Andrew Morton, Sabyrzhan Tasbolatov, Andrey Konovalov
  Cc: Arnd Bergmann, Marco Elver, linux-mm, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

This symbol is now used on the kasan test module, so it needs to be
exported.

ERROR: modpost: "copy_to_kernel_nofault" [mm/kasan/kasan_test.ko] undefined!

Fixes: 44749130ffb4 ("kasan: migrate copy_user_test to kunit")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 mm/maccess.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/maccess.c b/mm/maccess.c
index 3ca55ec63a6a..8f0906180a94 100644
--- a/mm/maccess.c
+++ b/mm/maccess.c
@@ -82,6 +82,7 @@ long copy_to_kernel_nofault(void *dst, const void *src, size_t size)
 	pagefault_enable();
 	return -EFAULT;
 }
+EXPORT_SYMBOL_GPL(copy_to_kernel_nofault);
 
 long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count)
 {
-- 
2.39.5



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-06-22  5:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-18 15:11 [PATCH] mm: export copy_to_kernel_nofault Arnd Bergmann
2024-10-18 15:12 ` David Hildenbrand
2024-10-18 15:35 ` Andrey Konovalov
2024-10-23  6:53 ` Christoph Hellwig
2024-10-23  6:57   ` Marco Elver
2024-10-23  6:59     ` Christoph Hellwig
2024-10-23  7:02       ` Marco Elver
2024-10-23  7:05         ` Christoph Hellwig
2024-11-07 22:29           ` Andrew Morton
2025-06-22  5:23             ` Sabyrzhan Tasbolatov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox