Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5844223ybv; Tue, 18 Feb 2020 05:07:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxxQbNQrF+OBEN3D0vhVjTqkU42MhVTgTvthJZERBJymcGp3yQVJlSWvYbwW3lLIfgJl9E0 X-Received: by 2002:a9d:7851:: with SMTP id c17mr16102654otm.58.1582031276070; Tue, 18 Feb 2020 05:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582031276; cv=none; d=google.com; s=arc-20160816; b=JUEbpiu0DGOo8ixUmcfAT2YRPEkcbMSUou/PZpEFXmIyQ9QsyGZKx3PeBKC7SCRdNg k70SI1PqHlgKacEYahYamz7VFrNoYGukPXrVabQOJrszlAF1n0M/EcduyH7GdRUMZRDc vhhKeTU4o/PhJEmztqNIobCByp4gOzn3AFzLvwbAgcD9oHOzyWpl3Mbs/yVPWHpgWBkb cYS3tioT5s43gZlWpq+x1w5W3s91fXkcIHAhcVcsiuEarDtY5TQN1JziCGRVscULRcZC hTvcbpBwTp5+3DW6hu0DMhfDZU5G+HcM9gkB0xPE3WdbtFZUfP2bOvrB23EVBm//vh8g Gahw== 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=vPUjUwBkd2sKYL/36btPv7PX2lrE6uY2KeptKualSso=; b=JIxdm/48h+ULlvs/DUDdNrDhBDfHrAHUSIefvnqJbiPuQd6JHp/rdLm2KqH+62gbCB HMBrvqZDAPf4j60zNOpa9TP+Zv4PFA5105YvsA2f7lEQFrVG2DV1i2Z6Sqq5PenzogT0 fdaNb9gi0YDEmbu5Z7w2aV7o9sIyww4aLo95WHtGNhtSqnfIxvWB65OhfQk4BFj7clKt /ypKufRy9oKZ7RJhgDIrN1HUcngMvuIXRhPOYlcERQwgTutZ6DdOPZ04nFcyRQnk8j5j dno73qOPeKcZMMtXhK1yuclCzBX1aIvUkHoWf4r6KTMM4bujywhbVDKQ592MazC+Azq9 9vaA== 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 u63si218654oif.88.2020.02.18.05.07.42; Tue, 18 Feb 2020 05:07:56 -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 S1726445AbgBRNHc (ORCPT + 99 others); Tue, 18 Feb 2020 08:07:32 -0500 Received: from 3.mo7.mail-out.ovh.net ([46.105.34.113]:37545 "EHLO 3.mo7.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726340AbgBRNHb (ORCPT ); Tue, 18 Feb 2020 08:07:31 -0500 X-Greylist: delayed 418 seconds by postgrey-1.27 at vger.kernel.org; Tue, 18 Feb 2020 08:07:31 EST Received: from player779.ha.ovh.net (unknown [10.108.42.174]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 4AA9E152C95 for ; Tue, 18 Feb 2020 14:00:51 +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 player779.ha.ovh.net (Postfix) with ESMTPSA id 47C2AF777551; Tue, 18 Feb 2020 13:00:37 +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 v2 6/8] docs: document panic fully in sysctl/kernel.rst Date: Tue, 18 Feb 2020 13:59:21 +0100 Message-Id: <20200218125923.685-7-steve@sk2.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200218125923.685-1-steve@sk2.org> References: <20200218125923.685-1-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 16141745491356634501 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrjeekgdegjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucfkpheptddrtddrtddrtddpkeekrdduvddvrdduvdeirdduudeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeejledrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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). Based on the implementation in kernel/panic.c. 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 795d8e695f50..a67c218c4066 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -558,9 +558,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.20.1