bug: Annotate WARN/BUG/stackfail as noinstr safe
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Mar 2020 12:49:51 +0000 (13:49 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:36 +0000 (15:14 +0200)
commit5916d5f9b3347344a3d96ba6b54cf8e290eba96a
tree371d7a89374c7fc5f74b22b5a8210b71a76f44c6
parent126f21f0e8d46e2c0e9daafb67546dbfb316d325
bug: Annotate WARN/BUG/stackfail as noinstr safe

Warnings, bugs and stack protection fails from noinstr sections, e.g. low
level and early entry code, are likely to be fatal.

Mark them as "safe" to be invoked from noinstr protected code to avoid
annotating all usage sites. Getting the information out is important.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134100.376598577@linutronix.de
arch/x86/include/asm/bug.h
include/asm-generic/bug.h
kernel/panic.c