Hi,

Le 08/01/2026 à 06:16, Venkat a écrit :
With this patch set, build fails.

Failure logs:

ld: init/main.o: in function `do_one_initcall':
/root/linux/init/main.c:1384: undefined reference to `memcpy'

I guess you have KASAN enabled ?

See https://lore.kernel.org/all/[email protected]/

This is because of commit 69d4c0d32186 ("entry, kasan, x86: Disallow overriding mem*() functions") which changed the core behaviour in 2023 without taking care of other architectures than x86 who was the only one with CONFIG_GENERIC_ENTRY ?

For powerpc the expected behaviour introduced in 2019 by commit 26deb04342e3 ("powerpc: prepare string/mem functions for KASAN") needs to be modified the same way to fit with the core change.

Christophe

Reply via email to