Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp272369rdb; Sat, 17 Feb 2024 07:46:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5NZ7MwLzcgd5RkknO3/nkFdyI8JK/HzSvhABONgc5KpwOLyrKpKTPtMRgwrLAlRjK5ZntPM6s7co+BJbYA8oLwieZqkrHVYIDux27Hg== X-Google-Smtp-Source: AGHT+IGzfClqcViQquLE0vOwDjbzh03cyRQxtTozn2rr2iPoYULMlvilrczXeGNRRyq0xmr2omBJ X-Received: by 2002:a0d:ca94:0:b0:5ff:6433:73d2 with SMTP id m142-20020a0dca94000000b005ff643373d2mr8945925ywd.8.1708184795113; Sat, 17 Feb 2024 07:46:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708184795; cv=pass; d=google.com; s=arc-20160816; b=P2OXOjnNTuDAVumCxPfDA1coXfGHnySXmkwz+ixftvX5mLpqLh2QUCkEqv3FIcrZVC Jpc1hDvMVSm84b8bdgawvzX/bK1Hz7kTnHO5f0NISlyWa+KBT+gSqBa4R2h15jjqmDVw 5i4dm1BSky+DBY88E5JFN4v0wRm+TMMq1a6BDoWWPP2kqtwCpiNnCnl22IJDgPSCsnsa qOLHrMPirGHgMvpqp3MjoRjA47K/9VneIygH0lRJhrE66i5cxiCZ4gZ/dGDzfXD82PC7 2hcOTyMjLVtDusF4YhOS9A+aWWHZKj23lo0OxOpF+zye3bpiNyJ/FKbnj+nbG2G66tfB XrPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:subject:from:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=JyxAqF710qoNJtioN5CI4fkcEiW0qvR2QjHG+hWxN4E=; fh=ButOIK5b0yBSujwLUbVUJdnMaZs8QaXk1PhTRNjeU/c=; b=gBXnyFaKCgRp6kG0/LXbELqceYnXV/WYTkMh0/yUAaiS1d+mkkrBEJMq41+0BK0evh 5W3DzRBiAkinj8dQT2U3qQEj+SlUl9zTLeTghmXbsgZveX0aM3rACSg4XkJ2fae/OPEq U77FVxLFSHdS6q/4fUfJoM5kA0k/kW1kO16NB+v4PPSFQqbdgTK6CWcpyNBfd5j43AgM UmY2p9ccPxMtZ1gVDJU0JZ6RaXDQa9Cg4Qx44ZfIR6E0eubpbtJL1AzB40tO3S05Zn7f einOqw950NaZIjEw0I+YTYjT3vnakym3QjmSYOYHRg07/RUZHR0cZmtUSGJkqyXyoCzX bFxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-69946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69946-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e15-20020ac845cf000000b0042c66a7173bsi2108074qto.425.2024.02.17.07.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 07:46:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-69946-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69946-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CB6531C214E9 for ; Sat, 17 Feb 2024 15:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B1067C6E7; Sat, 17 Feb 2024 15:46:27 +0000 (UTC) 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 4022026AE0; Sat, 17 Feb 2024 15:46:23 +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=1708184786; cv=none; b=l9WZbhYmWxHOQClleuCW51Xy3OfAMC4j46aTztABhIGdUGnGZ0gEV+2AG8g4Rgc1NfNfoLT21h0XSE9JD4Kj8toCH1b8C3mVEj22/IicFmNcmG5Ksl4FLkTaB1bF24SScOhUd3YQGlDhxe+FkdHBPLNcd+0SUw9ZV47TFN1ZkAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708184786; c=relaxed/simple; bh=zkvCGDhfNlH1XtqKg70gou2/9kz8mp1HggqC/aC/z5M=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=OZ5rMjOUAn2fyLad9a18LMhDCBKpz9YPD8OfNTYAZCLWBUbGF7WIJTA7gx4esm/EDBWNX3vptzYIflj+xP7bpF3Y09M8M7lM/gTUjqAoOJXgshTRUgoYUNUYndUfpsguwcROYfVPbvjFeF3UmzEY33vmUR8XQrxbaCpk7MD1RBI= 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; 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 Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rbMtM-0000pe-5r; Sat, 17 Feb 2024 16:46:16 +0100 Message-ID: <62ea7097-256c-4331-b937-778444125a06@leemhuis.info> Date: Sat, 17 Feb 2024 16:46:15 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Thorsten Leemhuis Subject: Re: [PATCH v1] docs: new text on bisecting which also covers bug validation To: =?UTF-8?B?UGV0ciBUZXNhxZnDrWs=?= Cc: Jonathan Corbet , regressions@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bagas Sanjaya , Nathan Chancellor References: <20240216204140.2ecbceec@meshulam.tesarici.cz> Content-Language: en-US, de-DE Autocrypt: addr=linux@leemhuis.info; keydata= xsFNBFJ4AQ0BEADCz16x4kl/YGBegAsYXJMjFRi3QOr2YMmcNuu1fdsi3XnM+xMRaukWby47 JcsZYLDKRHTQ/Lalw9L1HI3NRwK+9ayjg31wFdekgsuPbu4x5RGDIfyNpd378Upa8SUmvHik apCnzsxPTEE4Z2KUxBIwTvg+snEjgZ03EIQEi5cKmnlaUynNqv3xaGstx5jMCEnR2X54rH8j QPvo2l5/79Po58f6DhxV2RrOrOjQIQcPZ6kUqwLi6EQOi92NS9Uy6jbZcrMqPIRqJZ/tTKIR OLWsEjNrc3PMcve+NmORiEgLFclN8kHbPl1tLo4M5jN9xmsa0OZv3M0katqW8kC1hzR7mhz+ Rv4MgnbkPDDO086HjQBlS6Zzo49fQB2JErs5nZ0mwkqlETu6emhxneAMcc67+ZtTeUj54K2y Iu8k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Lp6E3100BuTCUCrQf9F3kB7BC92VHvobqYmvLTCTcbxFS4JNuT+ZyV+xR5JiV+2g2HwhxWW uC88BtriqL4atyvtuybQT+56IiiU2gszQ+oxR/1Aq+VZHdUeC6lijFiQblqV6EjenJu+pR9A 7EElGPPmYdO1WQbBrmuOrFuO6wQrbo0TbUiaxYWyoM9cA7v7eFyaxgwXBSWKbo/bcAAViqLW ysaCIZqWxrlhHWWmJMvowVMkB92uPVkxs5IMhSxHS4c2PfZ6D5kvrs3URvIc6zyOrgIaHNzR 8AF4PXWPAuZu1oaG/XKwzMqN/Y/AoxWrCFZNHE27E1RrMhDgmyzIzWQTffJsVPDMQqDfLBhV ic3b8Yec+Kn+ExIF5IuLfHkUgIUs83kDGGbV+wM8NtlGmCXmatyavUwNCXMsuI24HPl7gV2h n7RI In-Reply-To: <20240216204140.2ecbceec@meshulam.tesarici.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1708184783;7cef09da; X-HE-SMSGID: 1rbMtM-0000pe-5r On 16.02.24 20:41, Petr Tesařík wrote: > On Fri, 16 Feb 2024 09:54:46 +0100 > Thorsten Leemhuis wrote: First off a big "thank you" for your feedback, very much appreciated; it was really helpful. I followed your suggestions most of the time, sometimes with a few small changes. I only mentions things below where I didn't do that or when there was some other reason to reply. >> [...] >> Style and structure of the text match the one >> Documentation/admin-guide/quickly-build-trimmed-linux.rst uses. Quite a >> few paragraphs are even copied from there and not changed at all or only >> slightly. This will complicate maintenance, as some future changes to >> one of these documents will have to be replicated in the other. But this >> is the lesser evil: solutions like "sending readers from one document >> over to the other" or "extracting the common parts into a separate >> document" might work in other cases, but would be too confusing here >> given the topic and the target audience. > > Is this because you want to keep it readable if the target audience > reads the source text of the documentation? Otherwise, the .. include > directive does not make a difference after rendering to HTML. AFAIK. It less that I want that, it's more that I got the impression that both Jonathan and most of the kernel development community wants the source text to be readable; not totally sure, but I think that's the right thing to do, too. >> [...] >> * The text as of now does not really describe what a bisection is -- >> neither in general nor in the scope of Git. Maybe that should be >> added. Having a few nice graphical diagrams might also be good, as the >> text is meant to be read in rendered form anyway. But I think it's >> useful like this already. > > But here you expect it to be read in rendered form. It's just a suggestion (like the note in the test), but readers are still free to ignore it if they want an won't run into major trouble. > So, are you afraid > of making things confusing for potential later editors of this text? Not something I have thought about much about yet, but yes, keeping things simple is likely in everybody's interest. >> [...] >> diff --git a/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst b/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst >> new file mode 100644 >> index 00000000000000..0a6a1a082d867c >> --- /dev/null >> +++ b/Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst >> @@ -0,0 +1,1925 @@ >> +.. SPDX-License-Identifier: (GPL-2.0+ OR CC-BY-4.0) >> +.. [see the bottom of this file for redistribution information] >> + >> +========================================= >> +How to verify bugs and bisect regressions >> +========================================= >> + >> +This document describes how to check if some Linux kernel problem occurs in the >> +code developers currently support > > I got puzzled for a moment as the subject of the sentence changed. What about: > > code currently supported by developers As you have noticed here and everywhere: It seems I have overdone the "avoid passive voice" approach. I followed your advice here and in other places. >> -- to then explain how to locate the change >> +causing the issue, if it did not happen with earlier versions. > > I believe this part of the sentence could be also improved. I would not > be afraid of introducing the word "regression" here, e.g.: > > It also explains how to locate the change which introduced the issue if > it did not happen with an earlier version. Such issues are commonly > called regressions. Hmmm. That to me feels a bit to dry for the first sentence of the document, especially that "Such issues are commonly called regressions." part. I reworked my version slightly, but not much: This document describes how to check if some Linux kernel problem occurs in code currently supported by developers -- to then explain how to locate the change causing the issue, if it is a regression (e.g. did not happen with earlier versions). Not sure if the word regression really needs to be used and explained here, as it's already in the headline. But whatever. >> + # * Hint: at this point you might want to adjust the build configuration; >> + # you'll have to, if you are running Debian. > > Ugh... this step is necessary if you are running Debian ? It definitely was and it's still in the Debian docs[1], but I haven't recently checked. [1] search for "Missing debian/certs/debian-uefi-certs.pem" in https://debian-handbook.info/browse/stable/sect.kernel-compilation.html >> + one. Note, you in this case nevertheless want to compile a mainline kernel >> + as explained in segment 1, as that will determine if that is a bug that the >> + regular developers or the stable team will have to handle. > > Ugh again. Probably: > > Note, in this case you still want to compile a mainline kernel as > explained in segment 1. It will be used to decide if your issue will > be handled by regular developers or by the stable team. I went with this instead: Note, in this case you still want to compile and test a mainline kernel as explained in segment 1: the outcome will determine if you need to report your issue to the regular developers or the stable team. >> +* Retrieve the mainline Linux sources; then change into the directory holding >> + them, as all further commands in this guide are meant to be executed from >> + there. >> + >> + *Note, the following describe how to retrieve the sources using a full >> + mainline clone, which downloads about 2,75 GByte as of early 2024. The* >> + :ref:`reference section describes two alternatives ` *: >> + one downloads less than 500 MByte, the other works better with unreliable >> + internet connections.* >> + >> + Execute the following command to retrieve a fresh mainline codebase:: >> + >> + git clone -o mainline --no-checkout \ >> + git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git ~/linux/ >> + cd ~/linux/ > > This is not very nice to git-daemon. Plus, it uses the insecure git > protocol. Argh, the latter was definitely unintended (it likely sneaked in due to some unobservant cut'n'paste...). :-/ Fixed! > Is it too much to show cloning from a bundle instead? > > https://www.kernel.org/cloning-linux-from-a-bundle.html I know, but it's much more commands, that's why I decided against this. And from what I heard from Konstantin when that came up during the submission of the "quickly build trimmed kernel" guide it's not that bad if a few users do it like that; CI systems are the big problem here. > I stop here and call it a week. I may read the rest later. Hope even > this much helps . It helped a great deal, thx again! Ciao, Thorsten