Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp767764pxb; Tue, 5 Apr 2022 22:29:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk8evx3Ty+37OSmAjkheHRJXFs6MpaDtf/67+8/GbPpzg/JYCbQLkQNXF0O2dKl8VH3p+i X-Received: by 2002:a17:90b:3851:b0:1c7:80f9:5306 with SMTP id nl17-20020a17090b385100b001c780f95306mr7964095pjb.207.1649222941110; Tue, 05 Apr 2022 22:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649222941; cv=none; d=google.com; s=arc-20160816; b=LcDJbBP6oYzECw3FcFDE+tiN57d3YmzMrHgMpxQ8kXwnJcpAZ4cC+eg9WYxfEmxwAB uofL6q9N6eEZTYIUFcInBp5BQLi1j9f1Rl40rBQrbVo5VQEInoOEjwFA++hlkRolqHwZ vQCGsWyzBe0Orn0NUkz4onIDvgbS5uBoDoqdY9JZHFuOWIfi8JXYh/Ko11DCtRrjY9UH WEZKZkvItce2udbNEZ05Z3rjm7Jbmf2VgupTrWQJG8fZBOnRISMAJQfQQMD4QHBQ5s5M 75CRbjJGY20758lrJCzb7644Fyol/8N+7Zuy2m3MDkht93mzOxAed01QeW5s4MMcJ0pK Vu6w== 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=QYeCmi3M/9cU4hngFU5jMkVKU7kL+jHppjT99Cqly2luAg9cjzjpqRPOyG+xbdtQt6 4up2fVRF6sqO7C+wr/KOrmJMrM/LJM9hHfR/rhyaMDJYysTyPDUt37Tu0EDRfsurTsO0 /FyU6jZpZYRkta3cN2Ldvuinh4eT18ETb/pZ/faq8RKsxzIJZk7qtc7zticHZJ7Vpj63 Dn15bHR9X+LSOfJwCucqk4tUsQr7TTzhajRSnf9lk6lfesy8SDTeOuP/45TtpWXGgqA9 Yk6H87t6SLHeCKHBemzd7kjr7EibpocOIsOYQKw1xTr0eWuA7FoiMuNcFqTp8zdLt/MP TZDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A9kNk8Aa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mu16-20020a17090b389000b001c6fba58f84si4178316pjb.113.2022.04.05.22.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A9kNk8Aa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90A0018856E; Tue, 5 Apr 2022 21:02:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237554AbiDEVRa (ORCPT + 99 others); Tue, 5 Apr 2022 17:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354390AbiDEKOA (ORCPT ); Tue, 5 Apr 2022 06:14:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0C6A6A00A; Tue, 5 Apr 2022 02:59:40 -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 ams.source.kernel.org (Postfix) with ESMTPS id 62F70B818F6; Tue, 5 Apr 2022 09:59:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B095EC385A2; Tue, 5 Apr 2022 09:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152778; bh=UW7sADSpeZ8uaQdmEsxtEglXjUGyuz+vRPdBIfA1Nvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A9kNk8AaJDnYXyYx03R0P1kW/0yFqroD5kK9hqaGGKsFrInEOi0WIqoJmIe2F0xgN jL4B0LsxT0lf+8FW/1zkj0y3Tr2tVyJ9VvYFi7+VAISrmkkogNL2rQZW03IYDN1zds k4COxSTzRwuNTt9vj2vtDuYD4WaaZmZsHBHy5mc8= 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.15 898/913] docs: sysctl/kernel: add missing bit to panic_print Date: Tue, 5 Apr 2022 09:32:40 +0200 Message-Id: <20220405070406.737762271@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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::