From f7bf6055eb1e7ff603f0907b18ece35c72b05302 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 20:50:31 +0200 Subject: Adding debian version 6.8.9-1. Signed-off-by: Daniel Baumann --- ...0029-panic-Mark-emergency-section-in-warn.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 debian/patches-rt/0029-panic-Mark-emergency-section-in-warn.patch (limited to 'debian/patches-rt/0029-panic-Mark-emergency-section-in-warn.patch') diff --git a/debian/patches-rt/0029-panic-Mark-emergency-section-in-warn.patch b/debian/patches-rt/0029-panic-Mark-emergency-section-in-warn.patch new file mode 100644 index 0000000000..35c04773c5 --- /dev/null +++ b/debian/patches-rt/0029-panic-Mark-emergency-section-in-warn.patch @@ -0,0 +1,38 @@ +From: Thomas Gleixner +Date: Mon, 11 Sep 2023 15:53:04 +0000 +Subject: [PATCH 29/48] panic: Mark emergency section in warn +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.8/older/patches-6.8.2-rt11.tar.xz + +Mark the full contents of __warn() as an emergency section. 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. + +Co-developed-by: John Ogness +Signed-off-by: John Ogness +Signed-off-by: Thomas Gleixner (Intel) +Signed-off-by: Sebastian Andrzej Siewior +--- + kernel/panic.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/kernel/panic.c ++++ b/kernel/panic.c +@@ -667,6 +667,8 @@ struct warn_args { + void __warn(const char *file, int line, void *caller, unsigned taint, + struct pt_regs *regs, struct warn_args *args) + { ++ nbcon_cpu_emergency_enter(); ++ + disable_trace_on_warning(); + + if (file) +@@ -697,6 +699,8 @@ void __warn(const char *file, int line, + + /* Just a warning, don't kill lockdep. */ + add_taint(taint, LOCKDEP_STILL_OK); ++ ++ nbcon_cpu_emergency_exit(); + } + + #ifdef CONFIG_BUG -- cgit v1.2.3