Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp838882ybv; Thu, 13 Feb 2020 10:26:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwtIp3NeV7y1LkOUz33K7prJ4lyUg9ntntp/tGW5i+it86C9Kn7cL9AG6/SGwqHUWZOU2fy X-Received: by 2002:a05:6830:18f5:: with SMTP id d21mr14263446otf.225.1581618362835; Thu, 13 Feb 2020 10:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581618362; cv=none; d=google.com; s=arc-20160816; b=zRY7det+U0BCUwI8BXjpuiRIgv5R/vJLs9/auXh/Xecj8Oc+JMow8D1M96NyCoE0/T APVv7RyxmQwggHTAwRZIAAhNgNp7nPP+GVqwoCrENUyrkoTwGk1as5llg4kyESbqk6B/ W8rawwysi+mKy+nH4cdIw6AFSIMElpWg5+u8MNdcE8YYLCHakWE2b80Y3IEBlrDBHsDo HG7o14D+B5iVVn7UAX3cBtyoZLwbf582hJzogEaHy7RKe0DIdIs9jwb7H71FiSfAoUrs tZ0mbVzUAZ+tYDOmveAgHXOol9yk+7eLn2D2F5/CNOmDVqaZs7qGutcxWmlKs/Ytygu7 aOmA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=d47zIa0lPZX4alO1m43DNaESf6ekZKFnY0kRsRl14WA=; b=XbXDIH6c9WjFawuWAwFzcvDQ8j6FaJlAwEddzlfkuTaZMCM/ODzy4MwV60J/ppLkwV UX2oyC8egvOJTdYkgUVS1PV+KZFMExssLk52Z3V5x+kqibGrLY/4aGKHQ5FxA4tu/Weu PSaH0aG5cML1ymnx4SF8nQ4P3FdzYZJRp0s6tNpAtEY8l6CDwn/tZWgz9eAKR0FvYkVl SR5C5l9HlsQW+kYapO438N9linwkfY7k6+6Dhe81PP7GGQ1y7r3xx5nex/EodtCCBKwC hGGhcD8Vb+UzgOLfSApOkitcibk2nRaAl+mTpkLGjujtX6IkN6j38p3PaarC2bbUpSuv bHBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si1441469oin.34.2020.02.13.10.25.50; Thu, 13 Feb 2020 10:26:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbgBMSYk (ORCPT + 99 others); Thu, 13 Feb 2020 13:24:40 -0500 Received: from 5.mo173.mail-out.ovh.net ([46.105.40.148]:55886 "EHLO 5.mo173.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727433AbgBMSYk (ORCPT ); Thu, 13 Feb 2020 13:24:40 -0500 X-Greylist: delayed 2120 seconds by postgrey-1.27 at vger.kernel.org; Thu, 13 Feb 2020 13:24:39 EST Received: from player715.ha.ovh.net (unknown [10.108.57.38]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id 899E6130301 for ; Thu, 13 Feb 2020 18:49:18 +0100 (CET) Received: from sk2.org (cre33-1_migr-88-122-126-116.fbx.proxad.net [88.122.126.116]) (Authenticated sender: steve@sk2.org) by player715.ha.ovh.net (Postfix) with ESMTPSA id 71AF0F2A6770; Thu, 13 Feb 2020 17:49:02 +0000 (UTC) From: Stephen Kitt To: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH 6/6] docs: document panic fully in sysctl/kernel.rst Date: Thu, 13 Feb 2020 18:47:01 +0100 Message-Id: <20200213174701.3200366-7-steve@sk2.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200213174701.3200366-1-steve@sk2.org> References: <20200213174701.3200366-1-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 10096507416016735621 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrieekgddutdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecukfhppedtrddtrddtrddtpdekkedruddvvddruddviedrudduieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejudehrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The description of panic doesn’t cover all the supported scenarios; this patch fixes that, describing the three possibilities (no reboot, immediate reboot, reboot after a delay). Signed-off-by: Stephen Kitt --- Documentation/admin-guide/sysctl/kernel.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index a792345ac6db..7ee4685861ea 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -562,9 +562,15 @@ The default is 65534. panic ===== -The value in this file represents the number of seconds the kernel -waits before rebooting on a panic. When you use the software watchdog, -the recommended setting is 60. +The value in this file determines the behaviour of the kernel on a +panic: + +* if zero, the kernel will loop forever; +* if negative, the kernel will reboot immediately; +* if positive, the kernel will reboot after the corresponding number + of seconds. + +When you use the software watchdog, the recommended setting is 60. panic_on_io_nmi -- 2.24.1