summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:50:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:50:59 +0000
commitba6b167af6ee5e63ca79ad22e7719644aed12b2c (patch)
tree62272cbe2fb256ecb90fa6e2cbfa509541954d28 /debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch
parentMerging upstream version 6.8.9. (diff)
downloadlinux-ba6b167af6ee5e63ca79ad22e7719644aed12b2c.tar.xz
linux-ba6b167af6ee5e63ca79ad22e7719644aed12b2c.zip
Merging debian version 6.8.9-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch')
-rw-r--r--debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch b/debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch
deleted file mode 100644
index 09f528156f..0000000000
--- a/debian/patches-rt/0014-panic-Flush-kernel-log-buffer-at-the-end.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From: John Ogness <john.ogness@linutronix.de>
-Date: Thu, 14 Dec 2023 20:48:23 +0000
-Subject: [PATCH 14/50] panic: Flush kernel log buffer at the end
-Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.7/older/patches-6.7-rt6.tar.xz
-
-If the kernel crashes in a context where printk() calls always
-defer printing (such as in NMI or inside a printk_safe section)
-then the final panic messages will be deferred to irq_work. But
-if irq_work is not available, the messages will not get printed
-unless explicitly flushed. The result is that the final
-"end Kernel panic" banner does not get printed.
-
-Add one final flush after the last printk() call to make sure
-the final panic messages make it out as well.
-
-Signed-off-by: John Ogness <john.ogness@linutronix.de>
-Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
----
- kernel/panic.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
-
---- a/kernel/panic.c
-+++ b/kernel/panic.c
-@@ -446,6 +446,14 @@ void panic(const char *fmt, ...)
-
- /* Do not scroll important messages printed above */
- suppress_printk = 1;
-+
-+ /*
-+ * The final messages may not have been printed if in a context that
-+ * defers printing (such as NMI) and irq_work is not available.
-+ * Explicitly flush the kernel log buffer one last time.
-+ */
-+ console_flush_on_panic(CONSOLE_FLUSH_PENDING);
-+
- local_irq_enable();
- for (i = 0; ; i += PANIC_TIMER_STEP) {
- touch_softlockup_watchdog();