]> 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)
commitd80ed1777a021a11221dfb69be35b0a97e09adc7
treee706d386472eb5a70513c14fdc213c58816cfa95
parentb4e7aaf6e2ba63d8c7feec0649d39778e24700a2
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