From: akpm@linux-foundation.org Subject: [merged] kdb-dont-play-with-console_loglevel.patch removed from -mm tree Date: Tue, 09 Jun 2020 17:38:30 -0700 Message-ID: <20200610003830.Ht16WI2e8%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.29.99]:40278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgFJAib (ORCPT ); Tue, 9 Jun 2020 20:38:31 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: daniel.thompson@linaro.org, dianders@chromium.org, dima@arista.com, jason.wessel@windriver.com, mm-commits@vger.kernel.org The patch titled Subject: kdb: don't play with console_loglevel has been removed from the -mm tree. Its filename was kdb-dont-play-with-console_loglevel.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Dmitry Safonov Subject: kdb: don't play with console_loglevel Print the stack trace with KERN_EMERG - it should be always visible. Playing with console_loglevel is a bad idea as there may be more messages printed than wanted. Also the stack trace might be not printed at all if printk() was deferred and console_loglevel was raised back before the trace got flushed. Unfortunately, after rebasing on commit 2277b492582d ("kdb: Fix stack crawling on 'running' CPUs that aren't the master"), kdb_show_stack() uses now kdb_dump_stack_on_cpu(), which for now won't be converted as it uses dump_stack() instead of show_stack(). Convert for now the branch that uses show_stack() and remove console_loglevel exercise from that case. Link: http://lkml.kernel.org/r/20200418201944.482088-48-dima@arista.com Signed-off-by: Dmitry Safonov Reviewed-by: Douglas Anderson Acked-by: Daniel Thompson Cc: Jason Wessel Signed-off-by: Andrew Morton --- kernel/debug/kdb/kdb_bt.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/kernel/debug/kdb/kdb_bt.c~kdb-dont-play-with-console_loglevel +++ a/kernel/debug/kdb/kdb_bt.c @@ -21,17 +21,18 @@ static void kdb_show_stack(struct task_struct *p, void *addr) { - int old_lvl = console_loglevel;