Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp685605pxb; Tue, 5 Apr 2022 18:44:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuOwaX6+8+1ft7XQDJThH0mI2GzAQBIophR3NLlZI1aG5sRauvBWusQXVj+xbrDOY22lAx X-Received: by 2002:a17:906:7056:b0:6d6:dd99:f2a4 with SMTP id r22-20020a170906705600b006d6dd99f2a4mr5958338ejj.43.1649209379414; Tue, 05 Apr 2022 18:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209379; cv=none; d=google.com; s=arc-20160816; b=SehQ+okbiybSsfHmjEmQmTEWvBoMRf4QFqaF76ygMTCjByUd3lHlKtSrH8qSQ8nPzu KGTH3nh7x+sMGTrNVfC/l18DjA3UDo1+AdLl+6fgEvIX9DOKZXZxbfRRe0GCu7/4vgFg psiar8ZET/zhbBH5E0nOgrPUavzt8sl9tWQmpxoz4gldaHyPDDyE0SCwrsC9LXsRoRGC J3IohCQCCwkeRmtg/l8HriYGnZom0kD6Ob8/hZFCmw3iqZFOdL+a1/l/zudIZLjD3wWF SQ/PqIUgBkyBTzZIxpxWWcZ9c5eEw0SDd/xsVoQ0wnmvk+Wdqsykvha1mRznR/Y7xDyN mlAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OWRw4SO65zyZXK+0PcfYYxqm1iXjcwO6bEfGAbJLko4=; b=nY01OFKLZEJQ10KD9JBluCOnuj9mEaSUjn7G56yRcKadWQ7j0+y3aFIp8BVzX87qZP q6ERGgFsWlvuhoocmnbg+EWJeBgYbdtXDWYgwv0VfuYL4hu9gQQ97Xoj0gd1BYs2gFS5 3aStKSp7zqG28/yaJXwUj8BCIAe9d5r1d0l+FqteK8And9Z1yJTuOAmVqZ1mst3ktY4J txR2/052ySqquuIg1USoDcQL2XPz/FaWE28vsVrIrRe00nmhPRWfamfdoM4S3h3xRJMF G6uIWHUGQQRL7AFgDQKnKW2KTl1aZaCpLRw+InSIvPjPMcAY8K7VoH9l7KzPSorb1amW s86A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nF1hdIS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a17090638ca00b006dfe1d446f3si10172916ejd.84.2022.04.05.18.42.32; Tue, 05 Apr 2022 18:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nF1hdIS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358493AbiDEODo (ORCPT + 99 others); Tue, 5 Apr 2022 10:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235627AbiDEJbB (ORCPT ); Tue, 5 Apr 2022 05:31:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0033D22281; Tue, 5 Apr 2022 02:18:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D54961645; Tue, 5 Apr 2022 09:18:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70DDAC385A3; Tue, 5 Apr 2022 09:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150281; bh=UW7sADSpeZ8uaQdmEsxtEglXjUGyuz+vRPdBIfA1Nvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nF1hdIS2yeAGfxBd6hEOv+BCds7h9+HfPdfoNrhnsY3aajL6BHyXEz2ylBj5RZGRq dMLFlqdMNqKfSjMocArAv6/hPZ6/qwo+UuGautfrqmxMp7TX0o+7xNpCkZ2qInQr63 Muo8jWavTGfNhAVH2vSkAtaTQ5DbIA9duEKFPuvs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Guilherme G. Piccoli" , Feng Tang , Luis Chamberlain , Kees Cook , Iurii Zaikin , Samuel Iglesias Gonsalvez , Andrew Morton , Linus Torvalds Subject: [PATCH 5.16 1003/1017] docs: sysctl/kernel: add missing bit to panic_print Date: Tue, 5 Apr 2022 09:31:56 +0200 Message-Id: <20220405070423.975072168@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guilherme G. Piccoli commit a1ff1de00db21ecb956213f046b79741b64c6b65 upstream. Patch series "Some improvements on panic_print". This is a mix of a documentation fix with some additions to the "panic_print" syscall / parameter. The goal here is being able to collect all CPUs backtraces during a panic event and also to enable "panic_print" in a kdump event - details of the reasoning and design choices in the patches. This patch (of 3): Commit de6da1e8bcf0 ("panic: add an option to replay all the printk message in buffer") added a new bit to the sysctl/kernel parameter "panic_print", but the documentation was added only in kernel-parameters.txt, not in the sysctl guide. Fix it here by adding bit 5 to sysctl admin-guide documentation. [rdunlap@infradead.org: fix table format warning] Link: https://lkml.kernel.org/r/20220109055635.6999-1-rdunlap@infradead.org Link: https://lkml.kernel.org/r/20211109202848.610874-1-gpiccoli@igalia.com Link: https://lkml.kernel.org/r/20211109202848.610874-2-gpiccoli@igalia.com Fixes: de6da1e8bcf0 ("panic: add an option to replay all the printk message in buffer") Signed-off-by: Guilherme G. Piccoli Reviewed-by: Feng Tang Cc: Luis Chamberlain Cc: Kees Cook Cc: Iurii Zaikin Cc: Samuel Iglesias Gonsalvez Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Documentation/admin-guide/sysctl/kernel.rst | 1 + 1 file changed, 1 insertion(+) --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -795,6 +795,7 @@ bit 1 print system memory info bit 2 print timer info bit 3 print locks info if ``CONFIG_LOCKDEP`` is on bit 4 print ftrace buffer +bit 5 print all printk messages in buffer ===== ============================================ So for example to print tasks and memory info on panic, user can::