Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1116675lqt; Fri, 7 Jun 2024 08:25:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3mxF8Smg/uD2KTS7dNzbd7J7BYIS8BwvXI6o2jShCxMsGdkfnh2aySXM08TmIfKVQY5hU4UIe1dpz/y8i5NRkTPa9OQeRI/xXiiiXoA== X-Google-Smtp-Source: AGHT+IEGJS1S3lL3n7c/pwe8Pzhd0nrcdZyF6+JVmvO53tDsmtzekSA7ML89aV+84v4JqqjtBVn/ X-Received: by 2002:a2e:3512:0:b0:2ea:7a2a:4d1c with SMTP id 38308e7fff4ca-2eadce31a46mr24162861fa.8.1717773906893; Fri, 07 Jun 2024 08:25:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717773906; cv=pass; d=google.com; s=arc-20160816; b=xsQNDvvtfnpOMzHiPnyfbBjiR3QwS0ih35n+Y6AulnGlT0iTshS+9fAAHU2rUytAIR MPGChls911w18m+kBoTFf5Qqar5ME8/R2OLW34qL38TmHNvTxZuQonmOLD4icbtEiCU/ QJOJjNAdDfMOkZWIlhuYsIAzYB5KDF8c5vB6rmRhLR383bPwA3I/wmUXVMzlIk/FZpFJ WBjaclLDdQaC1T1fOyt5HqPHWtniTPrBGx4zBt4Y2hn8T5CQ7DEMtUuGAEo4HmBwIJ8f 5rQICDKt1NTR6K+xlLJwCaN7NyAtf3hACzOG5TgD2x+Ueq5BliKF5b6lbCHpsSH8UwIW uqSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=LU5NzzP6V+9mwVMNTyXJ7sgLtfZ2ktDoJyAshRfGtNY=; fh=Gs9EsD5oQOmfYT1ogrQA41etbzdERB3F4VelVaks8Fg=; b=OWqw8S3J3q2+yt9n94znNt0cH2G+huQB4hYrqV4kHuBSUKOGF62O7c88F7a4EQKZDo fJEx9nH9VmuaDUdGZXlZ+L3AYz3q3wqwDOSwvC2lAUL3rBYk+l4lq1QwWz1aeYArBK9s 6GROoWN9eW8E8s6wXvTg3NPLcoQDJXGIr0bMSETf+IuyW/E9/3f4qhtL/B5+fyMWROca 9R1RoEwwG6rigSP1YqM5KTFlO3JYpahh9Es+Z5QWWLmmfdUVwwJxeJZes66eIzjw3Phb d933VdSzaeaTaYZU8dJ4sVlMBf4d48Ru5Bg8DnWEvst/s77kl5AzZL7ygjEBS4zTu9gH Lh+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TnK8HrNV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-206383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806db540si197827366b.351.2024.06.07.08.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TnK8HrNV; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-206383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6CB101F21948 for ; Fri, 7 Jun 2024 15:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D23B6196DAB; Fri, 7 Jun 2024 15:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TnK8HrNV" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AEB219538C for ; Fri, 7 Jun 2024 15:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717773897; cv=none; b=TA6QkBlPwn0lQHUPTC/BCBTc5ExRsI4dzzyuFkHeBS+g5ek2VpYRvQ2I+haScb2jakPUDeQ/JmB8duCdJN5rzq3MAS4ZbwcHn+zCTRPohVDULOaxAKBY87DQAcemlLJQ/yE3eRvnCrbJYsudLPKazyyYuBFthPl6rY+IJziiLzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717773897; c=relaxed/simple; bh=7u5Kq1brXSsHc7yb6Z2jTQVjPStfm1aWws6CwBvVo2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=k4NG9oudQLSMjcKRZdPFivCYnX7HBgBmv5QVXcOv2RZqu/kSVEJAZi5TqS9lVeGugp7lcniALCjb2kDtH/ymbLcfnlmjTkB6K8wd6PR4oT8g7YHkvYBJ2sSNOcNCsQG9ezE9tOWyC4EbQJQDPIZk6j7IrGbqalVxCHjaOhwRLUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TnK8HrNV; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717773894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LU5NzzP6V+9mwVMNTyXJ7sgLtfZ2ktDoJyAshRfGtNY=; b=TnK8HrNVXOljfZ0OUNNMObWA6GLUdg195TlERYrDFo4ISgcvNruuyr9Te0mqUhqzU9L7WM uUDLN7oF8xsv0gwbd6zi08u47VMBUSQzFypEcFc1NTD+veqTONDCIVC8Z2MVGPwJTtkTU5 atpPmmbRPXgDGJT3aRQmuJf2rFZhdY8= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-554-0Q_3i9AdPWqj_jtKifaLJA-1; Fri, 07 Jun 2024 11:24:52 -0400 X-MC-Unique: 0Q_3i9AdPWqj_jtKifaLJA-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7953fc67fc8so120549685a.2 for ; Fri, 07 Jun 2024 08:24:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717773892; x=1718378692; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LU5NzzP6V+9mwVMNTyXJ7sgLtfZ2ktDoJyAshRfGtNY=; b=e18eDvoU+GTJKcM8Q9YqS+LOMQSo4KdcOeSbLB7a9fR9L90Ew4ilVDRk2wHLcSehLh XwR/H0X6CtMcZbd3qBzWdPfU/1xC84GfHDkUZ6RAxvN96By68FTMm4E8znulpTm6L1wU NkXCEExIPakN7UW2wZe1zFhlktuSpZL3Rx4r9+/7mT73CLVevFYmiS/m0UP/COx2OmYm iwOdSLFjRUgITXuBVw0maWUBkiXD/hRtpRxy5nKILlLU6R9cm9VMcgiquNU4SF0TPbs7 uD7MQqGQnL7A/xjlOjPAIXKkxrDEpaK4umOUs379CwrOGqXg2RqcxHPZ4sa9JlVxQer0 Osbg== X-Gm-Message-State: AOJu0Yyy8IkRFLApeOyif1pWyCwtphayIb1qOcHpbfR8LpSx854du7PK TrLizVLILfjpcriXPJKbJ8u8iq8XjL1SWLzsDwFtjTCEZ6jZG8VJegH5u71+UjGYi+WjQzlhSJn TqHlYjW/3tE2au70w6Hyzm+aRHgIKZyYUnqpDDn+3Cd2YsKqWLso/kEexLGWI4e9uRCusqQ== X-Received: by 2002:a05:620a:25d1:b0:794:f1d8:2798 with SMTP id af79cd13be357-7953c43c48amr298634685a.43.1717773891564; Fri, 07 Jun 2024 08:24:51 -0700 (PDT) X-Received: by 2002:a05:620a:25d1:b0:794:f1d8:2798 with SMTP id af79cd13be357-7953c43c48amr298632585a.43.1717773891180; Fri, 07 Jun 2024 08:24:51 -0700 (PDT) Received: from x1.. (c-98-219-206-88.hsd1.pa.comcast.net. [98.219.206.88]) by smtp.gmail.com with ESMTPSA id af79cd13be357-795330b2426sm176765885a.73.2024.06.07.08.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 08:24:50 -0700 (PDT) From: Brian Masney To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, javierm@redhat.com Subject: [PATCH v2] lib/Kconfig.debug: document panic= command line option and procfs entry for PANIC_TIMEOUT Date: Fri, 7 Jun 2024 11:24:43 -0400 Message-ID: <20240607152443.925168-1-bmasney@redhat.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit PANIC_TIMEOUT can also be controlled with the panic= kernel command line option and the file /proc/sys/kernel/panic. Let's document both of these in the Kconfig help text. Signed-off-by: Brian Masney Reviewed-by: Javier Martinez Canillas --- Changes since v1: - Added /proc/sys/kernel/panic as suggested by Javier. lib/Kconfig.debug | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 59b6765d86b8..2fc9f0ddde0b 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1043,7 +1043,9 @@ config PANIC_TIMEOUT Set the timeout value (in seconds) until a reboot occurs when the kernel panics. If n = 0, then we wait forever. A timeout value n > 0 will wait n seconds before rebooting, while a timeout - value n < 0 will reboot immediately. + value n < 0 will reboot immediately. This setting can be overridden + with the kernel command line option panic=, and from userspace via + /proc/sys/kernel/panic. config LOCKUP_DETECTOR bool -- 2.45.1