powerpc/kcsan: Prevent recursive instrumentation with IRQ save/restores
authorRohan McLure <rmclure@linux.ibm.com>
Mon, 6 Feb 2023 02:18:00 +0000 (13:18 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2023 11:19:56 +0000 (22:19 +1100)
commit4f8e09106f6e457c6e9a4ce597fa9ae2bda032c3
treeee70b0e9769afebd9b7bb37ba1cc89c20c08c643
parentb6e259297a6bffb882d55715284bb5219eefda42
powerpc/kcsan: Prevent recursive instrumentation with IRQ save/restores

Instrumented memory accesses provided by KCSAN will access core-local
memories (which will save and restore IRQs) as well as restoring IRQs
directly. Avoid recursive instrumentation by applying __no_kcsan
annotation to IRQ restore routines.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
[mpe: Resolve merge conflict with IRQ replay recursion changes]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230206021801.105268-5-rmclure@linux.ibm.com
arch/powerpc/kernel/irq_64.c