Re: [PATCH] ARM: export __memset/__memcpy/__memmove

From: Florian Fainelli
Date: Sun Jun 22 2025 - 16:29:34 EST




On 20/06/2025 04:12, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@xxxxxxxx>

When KASAN is locally disabled for one file, the string functions
get redirected to internal helpers, but those are not actually exported,
so this only works in built-in code but fails for loadable modules:

ERROR: modpost: "__memset" [crypto/ecc.ko] undefined!
ERROR: modpost: "__memcpy" [crypto/ecc.ko] undefined!

Add the missig exports.

Fixes: d6d51a96c7d6 ("ARM: 9014/2: Replace string mem* functions for KASan")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian