Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3105120imu; Mon, 17 Dec 2018 13:25:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOjmQNeoJGO4NfDhm/esYF/uNSKoUC4t6U4Hf+WU5vcVvOqrzsmwaK4KZPghnqNgbtj7Mn X-Received: by 2002:a63:554b:: with SMTP id f11mr13834316pgm.37.1545081935807; Mon, 17 Dec 2018 13:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545081935; cv=none; d=google.com; s=arc-20160816; b=iqMmxm6tQXatoa/3pGROBNImzwjMAifTtb5LXVFN1shm9v6o2jFjcsRgtJeIOOusjV s4S2IyearAqR6SNmxvy22IQDg92LuvNeiXg72FdaQFva6ruJLIjPWE53Hg5HUT+1UMVo fKew/tZKqqBzsYK3K6XVAkWfqrFqrYA2qrzY1o1KAxZ3Vtik/vfL7E8+/8055LGP9Edl OmuXT0+r5e2QKUSlP0KO0YakKP0zr95r728wWL4TxPdPnqMSf63EtTn5AOPlz301zAb8 FD+KXaUkwVeESkbR2CNBAZStEempvvV5T/Tn+5rqd+hnpeTbxoAd2VQbbqq7KLUpmxiM 4YTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=F5eDz++z/FQJ213bay0vdKfK1MgxKX+eXhxMIAA31Go=; b=gITu0gmfSLhnU5PkOoSPmdQUC7rk1zRQNtFFC07OSYXScqIZ4XYeXAlj165l+fMwcg DAccGQO+1nJYKGF+Yx9qtpGb9WrsfWykyB2K+VBgAXaPSY7QsM+fLHRzTrvbYjy2N4h5 dWwPrtU6RM+4iJiBj1oP9qhNE0O7wsEGk77PKwxn1j6eUxc/AvOTi83rZrgNI7OQnNjK kNMyIxtjIMr3FdVFQaYhQXAHFHn1JT2nwBKCIlio9UAAfdL2Rb8uX38nzMhM+oeOG6Jw pA2L//pRLLgzBYXIevkeRbnv4B39YxRHptCaaAW2xwxxpXdpMTK1i4Q/XjqraQqPUkdQ toJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=TADvunuP; 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 3si12018472plo.217.2018.12.17.13.25.19; Mon, 17 Dec 2018 13:25:35 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=TADvunuP; 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 S2389468AbeLQVGV (ORCPT + 99 others); Mon, 17 Dec 2018 16:06:21 -0500 Received: from merlin.infradead.org ([205.233.59.134]:58332 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbeLQVGV (ORCPT ); Mon, 17 Dec 2018 16:06:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=F5eDz++z/FQJ213bay0vdKfK1MgxKX+eXhxMIAA31Go=; b=TADvunuPcx9nhwIyhivs69EW4 ETFO94vFVgZjs1BNj9rLk72dTLsV6+ckzW4b7REeEIFMx7xHY/XFVfmHHgxoIROC8v1JyRoJHZloc FrH9cdDaj5DVrT4GnZx/lne23boVEwlGbDlGE+yNf7xRyI4C32mx33FQOKqVjo7IEavuXiqvVpfFW v16fTnIQJjiYPGEApg8IxLE+YNXwvysMcvN7JmJnCkFXPxJ/f89cx926q3OlZb88ZKvsuWgAqE13u nLYYgzYOeq/P3jxVGpAx5pS+/zpMu57NC+E/admts7MPRZjmynWtlj17SC4pj+FenWGTgipNf32oO zuhUqdlPw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZ05j-0003ww-4y; Mon, 17 Dec 2018 21:06:19 +0000 Subject: Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible To: Jonathan Corbet , Thorsten Leemhuis Cc: linux-doc@vger.kernel.org, Linux Kernel Mailing List References: <20181217152043.9989-1-linux@leemhuis.info> <20181217112437.5fe868eb@lwn.net> From: Randy Dunlap Message-ID: <8f67a8ca-bf64-c537-843a-b03bcfc3dace@infradead.org> Date: Mon, 17 Dec 2018 13:06:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181217112437.5fe868eb@lwn.net> Content-Type: multipart/mixed; boundary="------------6BBD015C4CD1538B71FF8F14" Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------6BBD015C4CD1538B71FF8F14 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 12/17/18 10:24 AM, Jonathan Corbet wrote: > Here's an idea if you feel like improving this: rather than putting an > inscrutable program inline, add a taint_status script to scripts/ that > prints out the status in fully human-readable form, with the explanation > for every set bit. And some people prefer not adding tools that use python, perl, etc. E.g., I use this shell script (named 'chktaint', which could probably be done better): (see attachment) -- ~Randy --------------6BBD015C4CD1538B71FF8F14 Content-Type: text/plain; charset=UTF-8; name="chktaint" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="chktaint" IyEgL2Jpbi9zaAojIEdQTCB2Mi4KIyBSYW5keSBEdW5sYXAgPHJkdW5sYXBAaW5mcmFkZWFk Lm9yZz4KClRBSU5URklMRT0iL3Byb2Mvc3lzL2tlcm5lbC90YWludGVkIgoKaWYgWyAhIC1y ICRUQUlOVEZJTEUgXTsgdGhlbgoJZWNobyAiTm8gZmlsZTogJFRBSU5URklMRSIKCWV4aXQK ZmkKCnRhaW50PWBjYXQgJFRBSU5URklMRWAKaWYgWyAkdGFpbnQgLWVxIDAgXTsgdGhlbgoJ ZWNobyAiS2VybmVsIG5vdCBUYWludGVkIgoJZXhpdApmaQoKZWNobyAiUmF3IFRhaW50IHZh bHVlOiAkdGFpbnQiClQ9JHRhaW50Cm91dD0KCmFkZG91dCgpIHsKCW91dD0kb3V0JDEKfQoK aWYgWyBgZXhwciAkVCAlIDJgIC1lcSAwIF07IHRoZW4KCWFkZG91dCAiRyIKZWxzZQoJYWRk b3V0ICJQIgkjIFByb3ByaWV0YXJ5IG1vZHVsZSB3YXMgbG9hZGVkCmZpCgpUPWBleHByICRU IC8gMmAKaWYgWyBgZXhwciAkVCAlIDJgIC1lcSAwIF07IHRoZW4KCWFkZG91dCAiICIKZWxz ZQoJYWRkb3V0ICJGIgkjIG1vZHVsZSB3YXMgZm9yY2UgbG9hZGVkCmZpCgpUPWBleHByICRU IC8gMmAKaWYgWyBgZXhwciAkVCAlIDJgIC1lcSAwIF07IHRoZW4KCWFkZG91dCAiICIKZWxz ZQoJYWRkb3V0ICJTIgkjIG9vcHMgb24gbm9uLXN1cHBvcnRlZCBTTVAgaGFyZHdhcmUKZmkK ClQ9YGV4cHIgJFQgLyAyYAppZiBbIGBleHByICRUICUgMmAg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