linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kasan: export kasan_poison
@ 2021-01-25 11:28 Arnd Bergmann
  2021-01-25 11:35 ` Vincenzo Frascino
  2021-01-27 21:25 ` Andrey Konovalov
  0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2021-01-25 11:28 UTC (permalink / raw)
  To: Andrey Ryabinin, Andrew Morton, Stephen Rothwell,
	Andrey Konovalov, Marco Elver, Alexander Potapenko
  Cc: Arnd Bergmann, Dmitry Vyukov, Vincenzo Frascino, Walter Wu,
	kasan-dev, linux-mm, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The unit test module fails to build after adding a reference
to kasan_poison:

ERROR: modpost: "kasan_poison" [lib/test_kasan.ko] undefined!

Export this symbol to make it available to loadable modules.

Fixes: b9b322c2bba9 ("kasan: add match-all tag tests")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 mm/kasan/shadow.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c
index de6b3f074742..32e7a5c148e6 100644
--- a/mm/kasan/shadow.c
+++ b/mm/kasan/shadow.c
@@ -94,6 +94,7 @@ void kasan_poison(const void *address, size_t size, u8 value)
 
 	__memset(shadow_start, value, shadow_end - shadow_start);
 }
+EXPORT_SYMBOL_GPL(kasan_poison);
 
 void kasan_unpoison(const void *address, size_t size)
 {
-- 
2.29.2



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

end of thread, other threads:[~2021-01-27 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 11:28 [PATCH] kasan: export kasan_poison Arnd Bergmann
2021-01-25 11:35 ` Vincenzo Frascino
2021-01-27 21:25 ` Andrey Konovalov
2021-01-27 21:48   ` Andrey Konovalov
2021-01-27 22:36   ` Arnd Bergmann

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