Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp76776lqt; Mon, 18 Mar 2024 01:39:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAVfWTObN1P2w/cPlkPW9YBEV+jUzLL+W8lYZLSJyk314QWWOlYE5nJNSOJwUxM8ZwU/hXG5o7eYgLfSl7RY5lAK3infa0MNd9vMJElQ== X-Google-Smtp-Source: AGHT+IHEeAylbR0NcLKjeR3/QKgF+2rYeOP9muPNhdJW0OhrVijeWEiAsbpTsSaOF0oVmFAKZBmO X-Received: by 2002:a2e:7e09:0:b0:2d4:5c0c:77db with SMTP id z9-20020a2e7e09000000b002d45c0c77dbmr5797414ljc.3.1710751165172; Mon, 18 Mar 2024 01:39:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710751165; cv=pass; d=google.com; s=arc-20160816; b=CnXh8Y6sp4TSQVJctFRv0efcvAUB/qyQfPid7Y8t85p6B7i+YuMUsy6Vd1LKLd3y7V LpIyqnNnIrC3CrBvz7CDfB5/BE+JKyAiMGwToW8BON0D0CdoSL39ZG4HT6K8gYEtQrko A/bI7qtO8+VyQqkTlKt1+6EobdMJARBxdMxXyo963fMZzw4WoOmgGpRS3fJKQtwIjU3X OaS7zrDXq334OGKrTjJFmn/VAaSmh1t9cTqUkPyskhpfl1k7RokW/aSZDWlaS2ou2yFQ UuPqTQwcp5F+U3xgNTrRwAm/+7yH/s547bAMfMxWCKQe9ro0MRRRDs1Z4D1Px8RGs3U7 ifFA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/HUnBo7yzk/GQr34a886n6vcdOoie6mtT3fmI7o6CHQ=; fh=LLgfFQ/VTqeVL5ku4k8M8FUiQpAxJbhBgNJC+lG8y0k=; b=sG7EZX+cHM4BPzYl6yoSgBvgRpFu1Rqc2jkVP7i2wECEFRmbXX2b75E0Alo3D3Gr9I gTLtqHOS7ljJR7H/PP2CUyTSd280vWn0BMvvSUYQ8p+vQ8lBZJAlu8ublr9Q2X6OLS01 0ZB82hXEmmfH6rLmEzEdWQe/8W1jQHsek+AEfvDPwq1dQkdFpsuqBsYfkxoT2XIIU4Us GWcGtwfHK0hxw7YO6cUS9G27L+tC6LaOskgW/bCFOlFWDzpDV2KcY/sm0sluoxr2YXLm E6xE2BkanoL2GJ/97t3XRei2vZ1OuLA6Z9EvWo6H+jpfkCguObSUZ0uTu9hFjED/DkjO rNwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=Y5W9u7Ga; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-105826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105826-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b15-20020a056402350f00b00568ce2de251si1539264edd.74.2024.03.18.01.39.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:39:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=Y5W9u7Ga; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-105826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105826-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B45CA1F20FE7 for ; Mon, 18 Mar 2024 08:39:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 218E12C1A2; Mon, 18 Mar 2024 08:38:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="Y5W9u7Ga" Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAA6B25757; Mon, 18 Mar 2024 08:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751135; cv=none; b=NIq3+0fCqfVVBHnanaSZ9ds6ur1FydHjXcYX0gEbv5INQ3pMCIIs/XtDdXdZ4eeYltimplT+N4R68XD9b98xeNGIualxCGdHAKQ5ItonjHTA3x2bIIXxMh3FvbhpsjMGzf3kaUSmarnpnFSRRCy7yTL4CiZ2HfSgU9FV2v+U2Xc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710751135; c=relaxed/simple; bh=LyKymQpai4NPJgMQu4KSa1lmNvpYbFeMuDfPh2+HPv4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qzELMgblVdTeXXWikI+lrTXtIJg0UWB4iXvzGYRMz3rgOlrSbuD/ggu6RDjMtkUYV+AdXAyMXWFqTzOhrhnnvBF4spOf24coPNDepjmxhbsKJRpTPY7iO4Z7m6USmV+2RAAE7H2UOIcU6LSQQzNeAmbTrF/x5qNjF2O+8KR0+nw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=Y5W9u7Ga; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=leemhuis.info; s=he214686; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:From:Sender: Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:In-Reply-To: References; bh=/HUnBo7yzk/GQr34a886n6vcdOoie6mtT3fmI7o6CHQ=; t=1710751133; x=1711183133; b=Y5W9u7GafPV+vKVJf6vSWu7YK17qKyhgNovDbjQHhMaGiJyLSyV+KWwc1CFk3 XcebkZxwzkuzG8GuoArEUVBQELcNKRQDZuhxOjC4wKKYZBYPcOQG9SqBf9he8h7+u1zKSGmGK+DmT 9Y4xMOu3mBfQ1Hmz4i/iZUgCf9MubVjWcRAxOCZtWRLSNOH3MxsqXwedG6AFxKYJ68XoNNuH1TJRY em6qLUrlEPoqALmPskt6m2OEnkOTgHq2EtGPZMpP0g2zYg1Cj5Lyv82gE/XgClrZBJEnXNUwLrHxG JGtPYa7r+/hCM1VE2n/6qlLb9yBExDCJpuRdE+CJloGmjCiqjw==; Received: from ip4d148da6.dynamic.kabel-deutschland.de ([77.20.141.166] helo=truhe.fritz.box); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1rm8W1-00037E-0R; Mon, 18 Mar 2024 09:38:41 +0100 From: Thorsten Leemhuis To: Jonathan Corbet Cc: regressions@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya , =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Subject: [PATCH v1 2/4] docs: verify/bisect: check taint flag Date: Mon, 18 Mar 2024 09:38:37 +0100 Message-ID: <8fcaffa8e85f36d51178d61061355c3c8bc85a0f.1710750972.git.linux@leemhuis.info> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1710751133;a9f5f439; X-HE-SMSGID: 1rm8W1-00037E-0R Instruct readers to check the taint flag, as the reason why it's set might directly or indirectly cause the bug or interfere with testing. Signed-off-by: Thorsten Leemhuis --- .../verify-bugs-and-bisect-regressions.rst | 64 ++++++++++++++----- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst b/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst index fb82118bb011b9..632372e343d89f 100644 --- a/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst +++ b/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst @@ -113,6 +113,7 @@ will be considered the 'good' release and used to prepare the .config file. # checking if the output of the next two commands matches: tail -n 1 ~/kernels-built uname -r + cat /proc/sys/kernel/tainted c) Check if the problem occurs with this kernel as well. @@ -572,21 +573,29 @@ be a waste of time. [:ref:`details`] Remember the identifier momentarily, as it will help you pick the right kernel from the boot menu upon restarting. -.. _recheckbroken_bissbs: - -* Reboot into the kernel you just built and check if the feature that is - expected to be broken really is. - - Start by making sure the kernel you booted is the one you just built. When - unsure, check if the output of these commands show the exact same release - identifier:: +* Reboot into your newly built kernel. To ensure your actually started the one + you just built, you might want to verify if the output of these commands + matches:: tail -n 1 ~/kernels-built uname -r - Now verify if the feature that causes trouble works with your newly built - kernel. If things work while investigating a regression, check the reference - section for further details. +.. _tainted_bissbs: + +* Check if the kernel marked itself as 'tainted':: + + cat /proc/sys/kernel/tainted + + If that command does not return '0', check the reference section, as the cause + for this might interfere with your testing. + + [:ref:`details`] + +.. _recheckbroken_bissbs: + +* Verify if your bug occurs with the newly built kernel. If it does not, check + out the instructions in the reference section to ensure nothing went sideways + during your tests. [:ref:`details`] @@ -616,11 +625,14 @@ be a waste of time. [:ref:`details`] make -s kernelrelease | tee -a ~/kernels-built reboot - Now verify if you booted the kernel you intended to start, to then check if - everything works fine with this kernel:: + Confirm you booted the kernel you intended to start and check its tainted + status:: tail -n 1 ~/kernels-built uname -r + cat /proc/sys/kernel/tainted + + Now verify if this kernel is showing the problem. [:ref:`details`] @@ -1629,13 +1641,32 @@ need to look in different places. [:ref:`back to step-by-step guide `] +.. _tainted_bisref: + +Check if your newly built kernel considers itself 'tainted' +----------------------------------------------------------- + + *Check if the kernel marked itself as 'tainted'.* + [:ref:`... `] + +Linux marks itself as tainted when something happens that potentially leads to +follow-up errors that look totally unrelated. That is why developers might +ignore or react scantly to reports from tainted kernels -- unless of course the +kernel set the flag right when the reported bug occurred. + +That's why you want check why a kernel is tainted as explained in +Documentation/admin-guide/tainted-kernels.rst; doing so is also in your own +interest, as your testing might be flawed otherwise. + +[:ref:`back to step-by-step guide `] + .. _recheckbroken_bisref: Check the kernel built from the latest codebase ----------------------------------------------- - *Reboot into the kernel you just built and check if the feature that regressed - is really broken there.* [:ref:`... `] + *Verify if your bug occurs with the newly built kernel.* + [:ref:`... `] There are a couple of reasons why the regression you face might not show up with your own kernel built from the latest codebase. These are the most frequent: @@ -1712,6 +1743,9 @@ In case the feature that broke with newer kernels does not work with your first self-built kernel, find and resolve the cause before moving on. There are a multitude of reasons why this might happen. Some ideas where to look: +* Check the taint status and the output of ``dmesg``, maybe something unrelated + went wrong. + * Maybe localmodconfig did something odd and disabled the module required to test the feature? Then you might want to recreate a .config file based on the one from the last working kernel and skip trimming it down; manually disabling -- 2.44.0