]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite91ef458a85c52053cbfc3ec56ff439a3940ea91
tree371d7a89374c7fc5f74b22b5a8210b71a76f44c6
parent8a80cd991e3d5e2576a308dc8d7ec213985b08e9
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