diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:11:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-07 13:11:37 +0000 |
commit | 85f603d4fd6d85c425502723a17daa94574977de (patch) | |
tree | 188a21432c3b8e8ddb8a08e9a09397164a88181c /debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch | |
parent | Merging upstream version 6.9.7. (diff) | |
download | linux-85f603d4fd6d85c425502723a17daa94574977de.tar.xz linux-85f603d4fd6d85c425502723a17daa94574977de.zip |
Adding debian version 6.9.7-1.debian/6.9.7-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch')
-rw-r--r-- | debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch b/debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch new file mode 100644 index 0000000000..37bf7b8fab --- /dev/null +++ b/debian/patches-rt/0026-panic-Mark-emergency-section-in-warn.patch @@ -0,0 +1,39 @@ +From: Thomas Gleixner <tglx@linutronix.de> +Date: Mon, 11 Sep 2023 15:53:04 +0000 +Subject: [PATCH 26/46] panic: Mark emergency section in warn +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/6.9/older/patches-6.9-rt5.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 <john.ogness@linutronix.de> +Signed-off-by: John Ogness <john.ogness@linutronix.de> +Signed-off-by: Thomas Gleixner (Intel) <tglx@linutronix.de> +Reviewed-by: Petr Mladek <pmladek@suse.com> +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +--- + kernel/panic.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/kernel/panic.c ++++ b/kernel/panic.c +@@ -671,6 +671,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) +@@ -706,6 +708,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 |