summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 21:00:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 21:00:47 +0000
commit8c065e72d7829ba7efeb3c93d98c602f7ba3d158 (patch)
tree6a0028be8b6ccf05cb17febc6abafbfbdd0569ec /debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch
parentMerging upstream version 6.9.2. (diff)
downloadlinux-8c065e72d7829ba7efeb3c93d98c602f7ba3d158.tar.xz
linux-8c065e72d7829ba7efeb3c93d98c602f7ba3d158.zip
Adding debian version 6.9.2-1~exp1.debian/6.9.2-1_exp1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch')
-rw-r--r--debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch b/debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch
new file mode 100644
index 000000000..4c382ac92
--- /dev/null
+++ b/debian/patches-rt/0027-panic-Mark-emergency-section-in-oops.patch
@@ -0,0 +1,40 @@
+From: John Ogness <john.ogness@linutronix.de>
+Date: Tue, 19 Sep 2023 17:07:34 +0000
+Subject: [PATCH 27/46] panic: Mark emergency section in oops
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.9/older/patches-6.9-rt5.tar.xz
+
+Mark an emergency section beginning with oops_enter() until the
+end of oops_exit(). In this section, the CPU will not perform
+console output for the printk() calls. Instead, a flushing of the
+console output is triggered when exiting the emergency section.
+
+The very end of oops_exit() performs a kmsg_dump(). This is not
+included in the emergency section because it is another
+flushing mechanism that should occur after the consoles have
+been triggered to flush.
+
+Signed-off-by: John Ogness <john.ogness@linutronix.de>
+Reviewed-by: Petr Mladek <pmladek@suse.com>
+Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+---
+ kernel/panic.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/kernel/panic.c
++++ b/kernel/panic.c
+@@ -638,6 +638,7 @@ bool oops_may_print(void)
+ */
+ void oops_enter(void)
+ {
++ nbcon_cpu_emergency_enter();
+ tracing_off();
+ /* can't trust the integrity of the kernel anymore: */
+ debug_locks_off();
+@@ -660,6 +661,7 @@ void oops_exit(void)
+ {
+ do_oops_enter_exit();
+ print_oops_end_marker();
++ nbcon_cpu_emergency_exit();
+ kmsg_dump(KMSG_DUMP_OOPS);
+ }
+