Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1752704ybh; Sun, 15 Mar 2020 10:10:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuhEiMg4K5pRZWya5X7D4yO+2C524Rfy8iY65ATIraPXJwGobGmmrEpj3rvh4SGfL/RRFG9 X-Received: by 2002:a9d:2f26:: with SMTP id h35mr18460150otb.246.1584292218744; Sun, 15 Mar 2020 10:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584292218; cv=none; d=google.com; s=arc-20160816; b=BV1aYkjfXS0UeAHnGEQhLKp/hHrec/GCNX8dt8cwKHMy+ZLptJ6iwXz59vWjWkeVjp Hc8MnCSWF14P6jQx8K1vv6B0GH517sPsE9+qlqi+jToZ2rKQGZjampTvELAsEp+7z2s9 ayA3K5WX8g6KG7FY/n0W9zuUflw3VrDNplL+m6eqLn7bBaK7GTDYg/AI+KLKXebuLTI1 GcZJdUu46r4L2E3PGttfgAfkpqRf54q1T0fQscfPfOHnarkEEFECQ0q6rbD3zkGlaPyX JjKdQfN7delaQ/fuqF1MWbQ9hWDBv4aI1AuSglE2LmH1rUl/4Xt5X/Xe4/prCMcjgSUE Pk0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yc4/8+r9LFoveyNvlviiorm4oDVYhtlLmMrWk1tR/FQ=; b=Hc/n4oLcuKbhvNrmpiFsEMEyzQyLUQ8sShBEAc6qu0IDMMu0YzB4c4yWNuG8HLOBFL ND2MNUNKaGNiVxZfuQwbxGDIsDY7wEEnq4WEEPuBRBPZBrZqcF7IHeKDAFjHXfZ1EZFj uFcOmDDGalMwT6X5ij34brcWVRAOYpNkLTRgi/w7h0StPFypAS4Q3nnLXbjS9YNTqpTl CTLVkpDjC9hPu8mhI/IiXaAjv5a6L5Ls9i+llSQpzxM84JIfsvMyHtuKxVVU9H2eARKe WqI3yLJH0VXSrQ+XakRzer9t1j4/Apc0l8emgp6aXcszfoav7QI/Vp4Fb704fz5WLQxe y84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AvYTglIG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16si2073205oie.225.2020.03.15.10.10.05; Sun, 15 Mar 2020 10:10:18 -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=@gmail.com header.s=20161025 header.b=AvYTglIG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728967AbgCORJi (ORCPT + 99 others); Sun, 15 Mar 2020 13:09:38 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51238 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728915AbgCORJh (ORCPT ); Sun, 15 Mar 2020 13:09:37 -0400 Received: by mail-wm1-f68.google.com with SMTP id a132so15129642wme.1 for ; Sun, 15 Mar 2020 10:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yc4/8+r9LFoveyNvlviiorm4oDVYhtlLmMrWk1tR/FQ=; b=AvYTglIGHkt2gGzakwKBWFsG6tS7qnh1tfKxmLN1Qhf/Usw1oHRP4U4FE1GtYyFuHp m7By8cIoTWpFKc1nPMsr/RLdVquePQkibxtRx7xcnb6njCWCS6wh3VsIXQrF9Wmbgbhg HSXamw8RhLIjL09PGqXBmWjfM8n65QXsA47PD+sY3mivjb9rJMKUeY/LhWntudrjnjRB ciztiYIinVBLqCRDFZ9AKzDYBFDqe3aYtAk3K3TuKL1UBJVeckIEewJUoKEOHRrhouEL VT59MCJebALE6RRkNVhHhaADQg3rbqKbA7YvFOCHk8+0QC1A+B7qSK1dhYGhD5v7V0Lj FHeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yc4/8+r9LFoveyNvlviiorm4oDVYhtlLmMrWk1tR/FQ=; b=iR9sw1YvubIqXOW+n8w6T4d0wKV3B35HDVNOjDdaq0rNPIClW9nIpThG6sIQoqGOJ7 OVb8qeXPuNxOagfs9/CIN84wQvsXGbsINGywo5wSmyysrZPh6mFEambn/CUceT2avK5K nfh94J6j5tnytvPByAl6pYCdTrZVIK+inJhS14hrqzyvPD3tmX4UBIbJ+XPzZMMaOO9o yZNUua0jgx7riwJX8/uPA5L1HFRknaSJ3UGo/k0FZXFCX+9NyTl922AGm4RqffOmsYk4 XnF6I+rWqPhusp6ukrBy2AeA5SKXodMyemMwLma5UzwdO/3LH2lRQi4nfq3focEhtk08 xlyw== X-Gm-Message-State: ANhLgQ2i/FZCIA0NdFIuYRAVEmndN9DlQ8GpUYgnbvjqfOwikQJBFGaq 1sBYo9uLQ0hD70rIfl1o4jJSCqlojaVgV5EY X-Received: by 2002:a1c:418b:: with SMTP id o133mr23602224wma.165.1584292173830; Sun, 15 Mar 2020 10:09:33 -0700 (PDT) Received: from localhost.localdomain (ipb218f56a.dynamic.kabel-deutschland.de. [178.24.245.106]) by smtp.gmail.com with ESMTPSA id u25sm25874774wml.17.2020.03.15.10.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 10:09:33 -0700 (PDT) From: Eugeniu Rosca X-Google-Original-From: Eugeniu Rosca To: linux-kernel@vger.kernel.org Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Jisheng Zhang , Valdis Kletnieks , Sebastian Andrzej Siewior , Andrew Gabbasov , Dirk Behme , Eugeniu Rosca Subject: [RFC PATCH 0/3] Fix quiet console in pre-panic scenarios Date: Sun, 15 Mar 2020 18:09:00 +0100 Message-Id: <20200315170903.17393-1-erosca@de.adit-jv.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear community, The motivation behind this seris is to save days/weeks, if not months, of debugging efforts for users who: * experience an issue like softlockup/hardlockup/hung task/oom, whose reproduction is not clear and whose occurrence rate is very low * are constrained to use a low loglevel value (1,2,3) in production * mostly rely on console logs to debug the issue post-mortem (e.g. saved to persistent storage via e.g. pstore) As pointed out in the last patch from this series, under the above circumstances, users might simply lack any relevant logs during post-mortem analysis. Why this series is marked as RFC is because: * There are several possible approaches to turn console verbosity on and off. Current series employs the 'ignore_loglevel' functionality, but an alternative way is to use the 'console_loglevel' variable. The latter is more intrusive, hence the former has been chosen as v1. * Manipulating 'ignore_loglevel' might be seen as an abuse, especially because it breaks the expectation of users who assume the system to be dead silent after passing loglevel=0 on kernel command line. Thank you for your comments! Eugeniu Rosca (3): printk: convert ignore_loglevel to atomic_t printk: add console_verbose_{start,end} watchdog: Turn console verbosity on when reporting softlockup include/linux/printk.h | 10 ++++++++++ kernel/printk/printk.c | 30 ++++++++++++++++++++++++++---- kernel/watchdog.c | 4 ++++ 3 files changed, 40 insertions(+), 4 deletions(-) -- 2.25.0