[PATCH v3 0/8] Generic IRQ entry/exit support for powerpc

Christophe Leroy (CS GROUP) chleroy at kernel.org
Thu Jan 8 17:05:42 AEDT 2026


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/0947502d-96e3-4179-ae48-603de74dc7b3@kernel.org/

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


More information about the Linuxppc-dev mailing list