]> git.ipfire.org Git - thirdparty/linux.git/commit
printk: Flush nbcon consoles first on panic
authorJohn Ogness <john.ogness@linutronix.de>
Tue, 20 Aug 2024 06:29:51 +0000 (08:35 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 21 Aug 2024 12:56:24 +0000 (14:56 +0200)
commitd2e85ca7a736d2d889bac9aef6ede0a67f6870b2
tree85a6039eb2208825135d0c50af27569b327676d6
parent8ba77712a7501ca941603d6d5ed650cd0d42cafb
printk: Flush nbcon consoles first on panic

In console_flush_on_panic(), flush the nbcon consoles before
flushing legacy consoles. The legacy write() callbacks are not
fully safe when oops_in_progress is set.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240820063001.36405-26-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c