Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp116397imu; Tue, 8 Jan 2019 15:50:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN7e2cOdmiJuNZGE3f8UtC/aY8Cb8o1XNwvuKl4E718c/wn2UzwzEwgSinFML9YoANhW0xqf X-Received: by 2002:aa7:810c:: with SMTP id b12mr3733392pfi.44.1546991457278; Tue, 08 Jan 2019 15:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546991457; cv=none; d=google.com; s=arc-20160816; b=TeTuVje7mGapYkYKNB5+jTvss4IXPH5yW6Oy+RxKKhQDdyTEUzzRm8qZPqlcSYnzjj ySzUFb0Q5huxYZu+dknCCh16L/1zgSt+PbDzhEdlUhKisrDmjramjfL0sZz/4SScXuX4 CiJB0y87KBgFEnvv4KKVxs9JzjyFVi6iWH6FlwgchzqCqLeuZvjM4HJ53YrECdgYdELC H8Eb8sV5a+oRWRmTOVFEHtQ8AzDBxx0akPeqJuhERonGaLI9NU2Bfqk4rbeew0OgXKN2 4GetS2KJ3JiGrKKz31oig/Lp6iWFsPl0frEJ5gmc2PFcYxgmzf2wosyn4dZBG35EDMZP tqrw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=K9eDabm80qSeSReXPGEpzLfyK/JQYOvOWkBvOpjafLY=; b=hAEO1KJzMML8qheM6llmySzPeCyrHlIvfygua7lSf+MczMnkGZ7o62VThPrx1yfxMF AaX+uoJYDw+39Wj0+qZFKaO/OjSW7whpkP+QXy8SpvR4vGvLSJle+ocotaIEXyvqLzvx ytfqIVjgimflcK4EoubaZ1K1FZWz/ZB5W1tYB6l3m7FeompkT2+zdShOz0Nq5yWS9qE/ nHyD5IZGYF5MBrQzB7aZVdxKMjuMbU1o9wFLHIMvPhU0OW89qv05s50cRPWWKaFLYdr3 Fsc/0k+GCLpN1fd7zfk5LejVsaPkTdxLpus+x2K5fpManKaeeKfoR1Yk6QzpnOgU4rEf 4jDQ== 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 c6si65261661plr.414.2019.01.08.15.50.41; Tue, 08 Jan 2019 15:50:57 -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 S1729467AbfAHXrk (ORCPT + 99 others); Tue, 8 Jan 2019 18:47:40 -0500 Received: from ms.lwn.net ([45.79.88.28]:60714 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728882AbfAHXrj (ORCPT ); Tue, 8 Jan 2019 18:47:39 -0500 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id AEF74286; Tue, 8 Jan 2019 23:47:38 +0000 (UTC) Date: Tue, 8 Jan 2019 16:47:37 -0700 From: Jonathan Corbet To: Thorsten Leemhuis Cc: linux-doc@vger.kernel.org, Linux Kernel Mailing List , Randy Dunlap Subject: Re: [PATCH v2 0/2] Revamp admin-guide/tainted-kernels.rst to make it more comprehensible Message-ID: <20190108164737.0c2539a6@lwn.net> In-Reply-To: <20190108194007.29439-1-linux@leemhuis.info> References: <20190108194007.29439-1-linux@leemhuis.info> Organization: LWN.net X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019 20:40:05 +0100 Thorsten Leemhuis wrote: > Hi! This is the second version of my patch to make > admin-guide/tainted-kernels.rst more comprehensible. It got triggered while > working on an update for reporting-bugs.rst, as improving the documentation > around reporting bugs and regressions was one of the main things that a lot of > people wanted to see while regression tracking was discussed in the kernel and > maintainer summit 2017 in Prague. > > This is the second version of the patch, which became a patch set, as it now > contains a script Randy (thx) provided during the discussion of the first > version. > > Please review and consider applying. OK, so we're so close... I think the patches are good; they are a welcome improvement to the documentation and the script looks great. Thanks for doing this! Patches applied. Now for the "I love your patch, something to improve part" :) - Patch 1 didn't apply to docs-next; probably you got caught by the fast-forward to 5.0-rc1. I've applied it to 4.20 then merged to resolve the conflict in tools/Makefile. - I was tempted to ask you to redo the changelogs, but ended up just tweaking them myself. Changelogs should focus on what the patch does and why; they aren't usually the place for the history of how the patch came to exist in its current form. I'll append what actually got committed. (Filling to 72 columns or so is also a nice touch for changelogs). Thanks for doing this work - looking forward to more. jon The reworked changelogs are: tools: add a kernel-chktaint to tools/debugging Add a script to the tools/ directory that shows if or why the running kernel was tainted. The script was mostly written by Randy Dunlap; I enhanced the script a bit. There does not appear to be a good home for this script. so create tools/debugging for tools of this nature. Signed-off-by: Randy Dunlap Signed-off-by: Thorsten Leemhuis [ jc: rewrote changelog ] Signed-off-by: Jonathan Corbet ----- docs: Revamp tainted-kernels.rst to make it more comprehensible Add a section about decoding /proc/sys/kernel/tainted, create a more understandable intro and a hopefully explain better the tainted flags in bugs, oops or panics messages. Only thing missing then is a table that quickly describes the various bits and taint flags before going into more detail, so add that as well. That table is partly based on a section from Documentation/sysctl/kernel.txt , but a bit more compact. To avoid confusion I added the shortened version to kernel.txt; the same table is used in three different places now: ./tools/debugging/kernel-chktaint, Documentation/admin-guide/tainted-kernels.rst and Documentation/sysctl/kernel.txt During review of v1 (see above) a number of existing issues with the text were raised, like outdated usages as well as incomplete or missing descriptions. Address most of those as well. Signed-off-by: Thorsten Leemhuis [jc: tightened up changelog] Signed-off-by: Jonathan Corbet -- Jonathan Corbet / LWN.net / corbet@lwn.net