]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfeeb1b01de3cac41ee596dfaf514fc955caacc66
treec4d95b90f992cf837ae87193d6944244de9c4f4a
parent0dd5330fd5b4290a14381c27bb71c82090945b1e
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