powerpc: disable KASAN instrumentation on early/critical files.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 16:23:33 +0000 (16:23 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:26 +0000 (01:20 +1000)
commitf072015c7b742c42aa5649d22f43163cd0eb7024
treec4d95b90f992cf837ae87193d6944244de9c4f4a
parentb4abe38fd698ace6942edeeb79a5b8a60a7af4fa
powerpc: disable KASAN instrumentation on early/critical files.

All files containing functions run before kasan_early_init() is called
must have KASAN instrumentation disabled.

For those file, branch profiling also have to be disabled otherwise
each if () generates a call to ftrace_likely_update().

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/Makefile
arch/powerpc/lib/Makefile
arch/powerpc/mm/Makefile
arch/powerpc/platforms/powermac/Makefile
arch/powerpc/purgatory/Makefile
arch/powerpc/xmon/Makefile