]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit799e062d6b3423bd91de775ca728b3dec18430d9
treee706d386472eb5a70513c14fdc213c58816cfa95
parentb3b9ea137dc03f22523d7bf69f102c4aa9ecec2c
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