powerpc: don't use direct assignation during early boot.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 16:23:29 +0000 (16:23 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:25 +0000 (01:20 +1000)
commitadcf59187e2705721ccf23733a5fa2fb20d91415
treeb1a1b45fa1bdb81e409a7f369f8f21f1d4a2e185
parent450e7dd4001f22f796e22422dd1d2cbd5bda21fc
powerpc: don't use direct assignation during early boot.

In kernel/cputable.c, explicitly use memcpy() instead of *y = *x;
This will allow GCC to replace it with __memcpy() when KASAN is
selected.

Acked-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/prom_init.c