diff options
Diffstat (limited to 'debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch')
-rw-r--r-- | debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch b/debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch index d66f01544..77fe9092b 100644 --- a/debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch +++ b/debian/patches-rt/printk-only-allow-kernel-to-emergency-message.patch @@ -1,7 +1,7 @@ From: John Ogness <john.ogness@linutronix.de> Date: Sun, 17 Feb 2019 03:11:20 +0100 Subject: [PATCH] printk: only allow kernel to emergency message -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz Emergency messages exist as a mechanism for the kernel to communicate critical information to users. It is not meant for @@ -16,7 +16,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c -@@ -1744,7 +1744,8 @@ static void printk_write_history(struct +@@ -1754,7 +1754,8 @@ static void printk_write_history(struct * The console_lock must be held. */ static void call_console_drivers(u64 seq, const char *ext_text, size_t ext_len, @@ -26,7 +26,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> { struct console *con; -@@ -1764,13 +1765,14 @@ static void call_console_drivers(u64 seq +@@ -1774,13 +1775,14 @@ static void call_console_drivers(u64 seq con->wrote_history = 1; con->printk_seq = seq - 1; } @@ -43,7 +43,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> /* skip emergency messages, already printed */ if (con->printk_seq < seq) con->printk_seq = seq; -@@ -1941,7 +1943,10 @@ asmlinkage int vprintk_emit(int facility +@@ -1951,7 +1953,10 @@ asmlinkage int vprintk_emit(int facility * - text points to beginning of text * - there is room before text for prefix */ @@ -55,7 +55,7 @@ Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> if ((lflags & LOG_CONT) || !(lflags & LOG_NEWLINE)) { cont_add(ctx, cpu, caller_id, facility, level, lflags, text, text_len); -@@ -2705,8 +2710,8 @@ static int printk_kthread_func(void *dat +@@ -2715,8 +2720,8 @@ static int printk_kthread_func(void *dat &len, printk_time); console_lock(); |