Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3157828ybh; Mon, 16 Mar 2020 17:12:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuDJbCn9zAUoxkCl/bf9+Ywz7CSvuXj7V/W3ncfa8GMcpmQQ0jq8hjVQkRWGpx7HpeU8Yn5 X-Received: by 2002:a9d:4e94:: with SMTP id v20mr1495417otk.96.1584403947369; Mon, 16 Mar 2020 17:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584403947; cv=none; d=google.com; s=arc-20160816; b=YUKk2MyWDBhadDyfp/I0DO33iFku2uBLVoaAk3eJ1DxH7dmaT9OQGJf+hp14owJBpE 6T5zB/KAZ9sDfQMHN70m72ZgVPEqczaDhCA+mwcbCn6b9N7o10lVIwvf89hKSc3rVaeS K8aZ8V98c2QLazTsbXrUyS27xQKn+GWe435zPrP0taQlj0+v3bnvz6wHjXFeE4OkLU1l nEjdeM0DX7RTyyFseyRfjIN7tNL3XrDHrnmcyPqM6FH0HrNYP1I5qwmFnU7BS2sAb51y HCK7CTqChr2FhNymtXGYYHxLtNblEEU5dNTxQyrOxrz4nYNfBK7N54rvdM9+WDqsj1wT 6zAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7ntKJKBz3QZaW3upO5B77khaQdlJEtk26+mdI0qKPpo=; b=LW4qsacFzV3j1q/8WkpfZwTl7FZy1aT7/ifItXfaqtrlxkrUSSQ7Ok9lJqBN5hnDGX lPovdOX2Fj7PCv/UiP50CY2Cy/w2b82PBSrz04mjNhQ1KdivvKM46J9sJq02GUs3VRBd fy69nKJZOvLX80ZDhb/VR/us3TnoJh0wmRg/HHrziKK9kAt6Tya2eetB9hN31xbLJc7y WN5j2PMEtIMed5FTOrT6ExWyzImEq0cp4DM4EepvCI9cpE2AiCr7JOOlBvpH6PFNO81y UqDrPF4zFWPNRDNXpLCPmgR3rqkHoSN1b8TRYo14Lotu24YMN68nZlZhbmfCmlCQJlgZ Vyxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kvfshzNl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si853718otk.87.2020.03.16.17.12.01; Mon, 16 Mar 2020 17:12:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kvfshzNl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732977AbgCQAHK (ORCPT + 99 others); Mon, 16 Mar 2020 20:07:10 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:40890 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732932AbgCQAHJ (ORCPT ); Mon, 16 Mar 2020 20:07:09 -0400 Received: by mail-vs1-f67.google.com with SMTP id m25so3842781vsa.7 for ; Mon, 16 Mar 2020 17:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7ntKJKBz3QZaW3upO5B77khaQdlJEtk26+mdI0qKPpo=; b=kvfshzNlH4GhDvSk8suwxv4rlbjov+ouHN1bXNvo95mWddKa0+ZXU5p0pE7LcZYAtx APOIogl/EVUTjvKtNAnnqgOiQkejh6bPINWYeNJOxzGqyE5hBBmXW4sRVFeitovagUDP r2O8J+vfLmAudOUh4T7Q9Kpg8ykyjwsrcshUs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7ntKJKBz3QZaW3upO5B77khaQdlJEtk26+mdI0qKPpo=; b=bAHepv/NPu373h7bCCqPbh8sILUbgX2EjLEmRC72QsGXNaF86ijP9ntemyc4anED0p vXMxyqMYzDPZkms8WSSlQzmuzD9qcmmJcZ/tQO2b+f753sM5fPn5yaSVxvmvxe1WQeQm E9mDpqhwJCYnYRNyXQTZmvcQRybev1oEIKWJuxESWJCDoXF+nNKiZEC7MMnn+Z22LKrd mq/JcPZ5Wpv3WC73yWh9aowV4oQAicv4ARmoJM0ynNF0R1kMTYfjrJwSPCIdMYc9+Qh+ +73Tkc6Lco7txw70j5TNinRHoApXpjGjnP6DrtNTwFoxGH3bP9WCHjGH01BhMPubh+Lm MEAA== X-Gm-Message-State: ANhLgQ0whlXZqAao0kNgooAVrHN+cIqolKtLjYN2eHTJHEmgtfQ8NNeY w9TgX7egCP5FLnkT1f9dK0js51owrxc= X-Received: by 2002:a67:fa14:: with SMTP id i20mr1719377vsq.196.1584403628219; Mon, 16 Mar 2020 17:07:08 -0700 (PDT) Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com. [209.85.222.43]) by smtp.gmail.com with ESMTPSA id r193sm580727vke.19.2020.03.16.17.07.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Mar 2020 17:07:07 -0700 (PDT) Received: by mail-ua1-f43.google.com with SMTP id i7so7009894uap.0 for ; Mon, 16 Mar 2020 17:07:06 -0700 (PDT) X-Received: by 2002:ab0:2e91:: with SMTP id f17mr1804155uaa.22.1584403626259; Mon, 16 Mar 2020 17:07:06 -0700 (PDT) MIME-Version: 1.0 References: <20200316143916.195608-1-dima@arista.com> <20200316143916.195608-48-dima@arista.com> In-Reply-To: <20200316143916.195608-48-dima@arista.com> From: Doug Anderson Date: Mon, 16 Mar 2020 17:06:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2 47/50] kdb: Don't play with console_loglevel To: Dmitry Safonov Cc: LKML , Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Jiri Slaby , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Tetsuo Handa , Daniel Thompson , Jason Wessel , kgdb-bugreport@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Mar 16, 2020 at 7:43 AM Dmitry Safonov wrote: > > 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. > > Cc: Daniel Thompson > Cc: Douglas Anderson > Cc: Jason Wessel > Cc: kgdb-bugreport@lists.sourceforge.net > Signed-off-by: Dmitry Safonov > --- > kernel/debug/kdb/kdb_bt.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) Presuming that the rest of this series is deemed acceptable by those in charge, this patch looks fine to me: Reviewed-by: Douglas Anderson -Doug