Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp478382imu; Fri, 21 Dec 2018 02:19:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7iDjxiBfuAteAkcvZw6+S7LTFmBhT19LXc00mhg+UZPN1t8p/4fBGaCzn37tDOaTeIgmbm X-Received: by 2002:a63:cd4c:: with SMTP id a12mr1863845pgj.252.1545387560140; Fri, 21 Dec 2018 02:19:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545387560; cv=none; d=google.com; s=arc-20160816; b=P2geMBMsiIQPVOU5kZ3P5k/PLmJvIkGfutRAIZOyzgbK0f89Q0obaAvUueSIZjzwpW I6ldFSePID6ZqU41tATzN1sa6QjM30T2o21rVFwIUj+XsGHvjtiPOcQRJ5lRKwd7FTX9 5EqecmFd0vUkMiOqt/BnLCggWU/rsgPqEpCj0UQ8QCXEKFjU0oCaqsGzgAMpnFfzgrPA emtEWMRLzFSjPnrZI1tBx+EYQ1uk1W4eYzJXwvALIdjjL5kPlNaVnCh712XW/Scw0FsO SAW6vHdiB02iMCVU5pn/GFoy5o4I31COOwP4Mj5Au3DJ4HfrIv23h+/zsRMDAcv+TWkv 9LtQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FjNs8VpeMu00P2stXs8RQhJqfBBhcHqh35FWhSVSkVg=; b=A4vG+xaaNQO810FRO6YS+nuPQl0FlEL8Iay46JEIU7zeydIjiYQtTYC4mmd3yuipPw co8ZjmXfzjYSHw5phwpB46oMjtMaMjaI5p4hbPyB975Y93mM5M1QWM2H7MBw0EZwsYEg 7PuhHdZ7oKsmixAo2S+oHV89IOmMzrNr+Kqt1fkT6Fs/OrUfSyQ0y0Hd5IcT0kPFcJ+o Qz0FuV8YqyncuyMSiA9RJXmg+yHh3Ey1cjSRFbyK+aNRbmTXaxDLvVG7Mp2tiA6c8BzS tQHYUFgsD5msKXD1cvZu16545R7cSiyQShwK2jxnFtrYwdJBnfBxYxbAk6kr+K2xdrjI RLnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WdUuNQo9; 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 c30si9500141pgn.52.2018.12.21.02.19.04; Fri, 21 Dec 2018 02:19:20 -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=bombadil.20170209 header.b=WdUuNQo9; 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 S1732794AbeLTUKf (ORCPT + 99 others); Thu, 20 Dec 2018 15:10:35 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:40886 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729469AbeLTUKf (ORCPT ); Thu, 20 Dec 2018 15:10:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To: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=FjNs8VpeMu00P2stXs8RQhJqfBBhcHqh35FWhSVSkVg=; b=WdUuNQo9V7CR3cPOzpO9qxEMW R7+ftCMmLtVGiKF0krOp6NcNbJz6yWf+CvfbVLrIGzFwEwGqyN5fOy6BKYDeV692or32IQnOG3nIx ZFT1C9DgDgkFj44z7REcgBuu96/YYNPI4QisUtC10N76FNibJR++/v76cd3zgxJDPJX4q5QwMgazf bY0HrWX0M8QGXdACvgw8tupyBP6C+w8aNNZNloOzsBo6LaaER2PYE5PoG1K1mCLY7ZbWCmlntGb8X axMxR11wYeyYDacGBU6naBE3ROa4g2DH8JSSKjd5qHo5vGTnTD6rUBeSNyldzJ3n+WiNwcBdqyH3q qZFP7bPIw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ga4eQ-00028Y-29; Thu, 20 Dec 2018 20:10:34 +0000 Subject: Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible To: Thorsten Leemhuis , Jonathan Corbet Cc: linux-doc@vger.kernel.org, Linux Kernel Mailing List References: <20181217152043.9989-1-linux@leemhuis.info> <20181217112437.5fe868eb@lwn.net> <8f67a8ca-bf64-c537-843a-b03bcfc3dace@infradead.org> <96fc8865-c54f-5c6c-f6c8-d7a5a12735e6@leemhuis.info> <20181220082819.69fc3e5c@lwn.net> <0996ba55-e5e1-49e2-f0ed-82cb1619ee03@leemhuis.info> From: Randy Dunlap Message-ID: Date: Thu, 20 Dec 2018 12:10:33 -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: <0996ba55-e5e1-49e2-f0ed-82cb1619ee03@leemhuis.info> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/18 10:21 AM, Thorsten Leemhuis wrote: > Am 20.12.18 um 17:38 schrieb Randy Dunlap: >> On 12/20/18 7:28 AM, Jonathan Corbet wrote: >>> On Thu, 20 Dec 2018 16:23:38 +0100 >>> Thorsten Leemhuis wrote: >>> >>>> While at it: Jonathan, you mentioned putting the script in scripts/, but >>>> according to the Makefile in that directory it is "for various helper >>>> programs used throughout the kernel for the build process". That's one >>>> reason why it feels wrong to put it there. Another one: that script >>>> targets users and thus we should try to make sure they can access it >>>> easily. That's why I'm currently inclined to put it in tools/ somewhere. >>> Yeah, tools/ is a better place. Maybe a tools/debugging directory or some >>> such? >> chktaint > > BTW, I renamed it to kernel-taintstatus, sounded more appropriate to me. > Does anyone mind? Not terribly, although that seems too long to me. ;) maybe 'taintstatus'? >> is similar (IMO) to scripts/decodecode though. > > Hmmm. Maybe it would be better to move this to tools/? Will take a quick > look, guess sooner or later by current endeavours will lead me to the > documentation that refers to this script anyway. > >> @Thorsten: >> Signed-off-by: Randy Dunlap > > Thx. And thx for the feedback in the other reply. > > BTW, for those following this thread and my earlier quest for a simple > cmd to decode /proc/sys/kernel/tainted: looks like @apexo on twitter > (thx again!) found a trick to do what I want which should work on most > systems out-of-the-box: > > $ for i in $(seq 18); do echo $i $(($(cat > /proc/sys/kernel/tainted)>>($i-1)&1));done I think Jon mentioned this: The output should begin with bit #0, not bit #1, so it should show bits 0 - 17 (or whatever the max is), not 1 - 18. -- ~Randy