OSDN Git Service

powerpc/64/interrupt: avoid BUG/WARN recursion in interrupt entry
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 05:43:04 +0000 (15:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:11 +0000 (19:22 +1000)
commitf7bff6e7759b1abb59334f6448f9ef3172c4c04a
treee706d386472eb5a70513c14fdc213c58816cfa95
parentc39fb71a54f09977eba7584ef0eebb25047097c6
powerpc/64/interrupt: avoid BUG/WARN recursion in interrupt entry

BUG/WARN are handled with a program interrupt which can turn into an
infinite recursion when there are bugs in interrupt handler entry
(which can be irritated by bugs in other parts of the code).

There is one feeble attempt to avoid this recursion, but it misses
several cases. Make a tidier macro for this and switch most bugs in
the interrupt entry wrapper over to use it.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926054305.2671436-7-npiggin@gmail.com
arch/powerpc/include/asm/interrupt.h