From: Alan Cox If we are going to BUG() not panic() here then we should cover the case of the BUG being compiled out Signed-off-by: Alan Cox Signed-off-by: Andrew Morton --- kernel/exit.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/exit.c~exit-fix-crash-case kernel/exit.c --- a/kernel/exit.c~exit-fix-crash-case +++ a/kernel/exit.c @@ -964,7 +964,8 @@ fastcall NORET_TYPE void do_exit(long co schedule(); BUG(); /* Avoid "noreturn function does return". */ - for (;;) ; + for (;;) + cpu_relax(); /* For when BUG is null */ } EXPORT_SYMBOL_GPL(do_exit); _