On (20/05/15 10:50), Petr Mladek wrote: > kdb is able to stop kernel even in NMI context where printk() is redirected > to the printk_safe() lockless variant. Move the check and redirect to kdb > even in this case.
Can I please have some context what problem does this solve? I can see that vkdb_printf() calls into console drivers: for_each_console(c) { c->write(c, cp, retlen - (cp - kdb_buffer)); touch_nmi_watchdog(); } Is this guaranteed that we never execute this path from NMI? If so, can this please be added to the commit message? A more detailed commit message will help a lot. -ss