+ panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4
has been added to the -mm tree.  Its filename is
     panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Feng Tang <feng.tang@xxxxxxxxx>
Subject: panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4

keep the original console_flush_on_panic() inside panic(), as suggested by
Petr Mladek

Link: http://lkml.kernel.org/r/1556199137-14163-1-git-send-email-feng.tang@xxxxxxxxx
Signed-off-by: Feng Tang <feng.tang@xxxxxxxxx>
Cc: Aaro Koskinen <aaro.koskinen@xxxxxxxxx>
Cc: Petr Mladek <pmladek@xxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Borislav Petkov <bp@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/panic.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/kernel/panic.c~panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4
+++ a/kernel/panic.c
@@ -137,8 +137,6 @@ static void panic_print_sys_info(void)
 {
 	if (panic_print & PANIC_PRINT_ALL_PRINTK_MSG)
 		console_flush_on_panic(CONSOLE_REPLAY_ALL);
-	else
-		console_flush_on_panic(CONSOLE_FLUSH_PENDING);
 
 	if (panic_print & PANIC_PRINT_TASK_INFO)
 		show_state();
@@ -283,6 +281,8 @@ void panic(const char *fmt, ...)
 	 * panic() is not being callled from OOPS.
 	 */
 	debug_locks_off();
+	console_flush_on_panic(CONSOLE_FLUSH_PENDING);
+
 	panic_print_sys_info();
 
 	if (!panic_blink)
_

Patches currently in -mm which might be from feng.tang@xxxxxxxxx are

panic-avoid-the-extra-noise-dmesg.patch
panic-add-an-option-to-replay-all-the-printk-message-in-buffer.patch
panic-add-an-option-to-replay-all-the-printk-message-in-buffer-v4.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux