Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1655336lqg; Sun, 3 Mar 2024 22:16:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXuKu4KXIYU6Bze9dWEvLvnx/lBMegfSE1UdT9sLXeHJE+heIf1xtC+HSq9rYejDuc6vvfjjCV5VSlWG6RjZ/V3yUyAjWWvj/q2ohiOwA== X-Google-Smtp-Source: AGHT+IEmRku09RbvczzbAHfkYs5xZ1NIlYJ0OwwPbMQu+kQflyMsizIaTEjYp4JEitXLk0CwoEzi X-Received: by 2002:a17:902:f7d3:b0:1dc:b3ba:40aa with SMTP id h19-20020a170902f7d300b001dcb3ba40aamr7095847plw.47.1709533019437; Sun, 03 Mar 2024 22:16:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709533019; cv=pass; d=google.com; s=arc-20160816; b=eaJyfOrwbm5260TcCfl5nNnM2cL3HWWYxdixC1Yu2A4POEG8Y93OnCARH66wx4yp01 q1GB9vqQlSXKy6sE9MG8kaX7ufY6CSU/sqYSnYUNolWWNl9vP3gAVr12c7DUilDTUX7t czC1T8EvGyNClT55G6hEP6+wmu906K1+LY8s/wNkjs9Z1rXRi3Vps73mttSHHniO8alS 5kMlikDTSsUvqu1tOitaUs2tmrpNLhGM3yfVR8jjX2PyQD5guzaeaDAo4xfv+Pty3mVC mlHU/wT9EN+zESOwxTN0JYVWEEKUwjZX2xsAraJT4LsC+/E9QLO3dT/c43KI1cMG5BOP zpUA== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=BJJ1FnvZ+/hL3/GZOS7H0S2hO+1YoMgqTri63N9h0ZM=; fh=wZI7kBqNWPRQ0vQ7T3J2Afc8L0FXn689TTmTjiApj+A=; b=Ips75NytSUeKq1QZy1jLIsSLTYBoxUj8BOXwaOJgWaN5PXdg+Go3UTbbqZIyIuwQhm vebTSbrEaW8FE7CqT9TnghTOjLSSt4vBhmB0f8jVEjMLgRyCMYjcBKiElwYpERJtzpoh mnqQ0ywmrNUAWBEOMtAWB/ogtJ1rmb+RVlZmwQxJTQ1qmcG44kp2sAXpKiHNYMAaG+hB dKpSde6Wok7XYnMxBAhKwlKOKM6Lak35br5ZKeUx3YelPtI5H5uflTka11Gc9kOz1UkB hFkFox8vq5gJgpm/YLhgM5ikPqzrwhI9BJVQ4CXLfQu+ba0HWlbxDUtqkjz5U5hJrnBM RzLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=DpT3jIfe; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-90077-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90077-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e20-20020a170902f1d400b001dc8ad65bdfsi7498007plc.599.2024.03.03.22.16.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 22:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90077-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=DpT3jIfe; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-90077-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90077-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1CF7F281601 for ; Mon, 4 Mar 2024 06:16:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 996FACA73; Mon, 4 Mar 2024 06:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="DpT3jIfe" 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 08CABBA5E; Mon, 4 Mar 2024 06:16:49 +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=1709533012; cv=none; b=Jn4XSyb+9e923eu93nX7yKdzBTYLVYtIL0AE/QTdWWhnbr6zpy1C+726TKQTagRnqDc9YXgI0QagcZPGuQnUJ4o6vPcYh0Zw7q0vFoxNfrg4mOcKluRIoc/pVDlQvzVMrgmSSkCUpUUZAb0f899IFpI6Cf7x5Tk/5C7p7tpfmIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709533012; c=relaxed/simple; bh=vDEkHhbgoncuK1EhIkt+qBLzvO6pAGjxBO7E/Z8jvNs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ef/yaCzT3pXQ3Ay+kK6c+s/N8u/NsCxor/dBeBcccAS01X4bVhvkZMO6/06Qg535BgcnkkjNP8sB1BYvIe8+6QvK5zhQKNBE5zrqqlc9nlOFf86oehAQIMqlDTNV6ZrRp2c4+ubo+PmdRLrfYXf+QRlevy+WJqbg2H3MBznuJMo= 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=DpT3jIfe; 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:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: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=BJJ1FnvZ+/hL3/GZOS7H0S2hO+1YoMgqTri63N9h0ZM=; t=1709533010; x=1709965010; b=DpT3jIfeeua4C8TkKdh93dK/4LNNN6yUumz3OfzpaoTb/V+v/Se2sZLRqjn80 /NytuTIWzY/p+4vn0qEIF7xfkRyQxwyD7UStKAFzCaUEV541sJ/G6OpzWoyFpn/M13v7yqp2axyoh LMEtDGO9NVwZVcl+b1tcPOBnr/FbI6kUBhkCeyJWL+GvQ6Em7QdwLVNXYag1u3YeyRC+JRyUK6Ou8 IcLEhLl8j+I+TzIDfaGLIAOxriT3tyw/dWCjPvapBfxmcuc8xgoCMmd5YEecWTJcXb0NLSDYaH/vb v+U+KinOQTMDBM/OfLgJm8G2fnDK5pfGhjjW2K1Vlk68IAretA==; 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 1rh1cw-0002hs-9B; Mon, 04 Mar 2024 07:16:42 +0100 Message-ID: Date: Mon, 4 Mar 2024 07:16:41 +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 Subject: Re: guide on bisecting (was Re: [REGRESSION] kexec does firmware reboot in kernel v6.7.6) Content-Language: en-US, de-DE To: Pavin Joseph , Linux regressions mailing list Cc: LKML , Linux Doc Mailing List References: <3a1b9909-45ac-4f97-ad68-d16ef1ce99db@pavinjoseph.com> <7ebb1c90-544d-4540-87c0-b18dea963004@leemhuis.info> <3a8453e8-03a3-462f-81a2-e9366466b990@pavinjoseph.com> <806629e6-c228-4046-828a-68d397eb8dbc@pavinjoseph.com> <4630483e-fc4e-448d-8fd6-916d3422784e@leemhuis.info> <66019e35-5adb-4817-a64d-e379b6f4240a@pavinjoseph.com> From: Thorsten Leemhuis Autocrypt: addr=linux@leemhuis.info; keydata= xsFNBFJ4AQ0BEADCz16x4kl/YGBegAsYXJMjFRi3QOr2YMmcNuu1fdsi3XnM+xMRaukWby47 JcsZYLDKRHTQ/Lalw9L1HI3NRwK+9ayjg31wFdekgsuPbu4x5RGDIfyNpd378Upa8SUmvHik apCnzsxPTEE4Z2KUxBIwTvg+snEjgZ03EIQEi5cKmnlaUynNqv3xaGstx5jMCEnR2X54rH8j QPvo2l5/79Po58f6DhxV2RrOrOjQIQcPZ6kUqwLi6EQOi92NS9Uy6jbZcrMqPIRqJZ/tTKIR OLWsEjNrc3PMcve+NmORiEgLFclN8kHbPl1tLo4M5jN9xmsa0OZv3M0katqW8kC1hzR7mhz+ Rv4MgnbkPDDO086HjQBlS6Zzo49fQB2JErs5nZ0mwkqlETu6emhxneAMcc67+ZtTeUj54K2y Iu8kk6ghaUAfgMqkdIzeSfhO8eURMhvwzSpsqhUs7pIj4u0TPN8OFAvxE/3adoUwMaB+/plk sNe9RsHHPV+7LGADZ6OzOWWftk34QLTVTcz02bGyxLNI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VZHdUeC6lijFiQblqV6EjenJu+pR9A 7EElGPPmYdO1WQbBrmuOrFuO6wQrbo0TbUiaxYWyoM9cA7v7eFyaxgwXBSWKbo/bcAAViqLW ysaCIZqWxrlhHWWmJMvowVMkB92uPVkxs5IMhSxHS4c2PfZ6D5kvrs3URvIc6zyOrgIaHNzR 8AF4PXWPAuZu1oaG/XKwzMqN/Y/AoxWrCFZNHE27E1RrMhDgmyzIzWQTffJsVPDMQqDfLBhV ic3b8Yec+Kn+ExIF5IuLfHkUgIUs83kDGGbV+wM8NtlGmCXmatyavUwNCXMsuI24HPl7gV2h n7RI In-Reply-To: <66019e35-5adb-4817-a64d-e379b6f4240a@pavinjoseph.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1709533010;dcd7aaf7; X-HE-SMSGID: 1rh1cw-0002hs-9B On 03.03.24 11:17, Pavin Joseph wrote: > On 3/3/24 14:06, Thorsten Leemhuis wrote: > >> That being said: I think I might know what sent you sideways: the main >> section lacked a "git remote add -t master stable >> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git". :-(( > Now that I read through it with a fresh pair of eyes, this is exactly > the problem! Thx for confirming, fixed this up locally and will submit a patch to fix this for inclusion (the text is now in -next, yeah!). >>> 2. The "installkernel" command is called "kernel-install" in OpenSuse, >> >> Yeah, it looks like that, but that's not really the case. :-) In short: >> on Fedora "installkernel" calls into kernel-install -- and >> "installkernel" has a long history, so doing what Fedora does is likely >> a wise thing for distros. And openSUSE had a "installkernel" as well, >> which was part of the dracut package. Not sure if that is still the case >> for current Leap and Tumbleweed. Could you check? > > It's not available even as a symlink in OpenSuse TW / Slowroll I'm afraid. I'm not really familiar with openSUSE, but it set up a TW container and found that a package kernel-install-tools provides installkernel script. Not sure how good it works though. Could you maybe test that? >>> and it doesn't really perform all the steps to install kernel. It calls >>> dracut to create initramfs though, but that's hardly much help. >> Could you please elaborate a bit on that "hardly much help", as I'm not >> really sure what you exactly mean here. Are you and/or openSUSE normally >> not using dracut? > I meant that calling kernel-install in OpenSuse only seems to then call > dracut to build an initramfs for the kernel. I can call dracut myself > without adding an unnecessary middleman (kernel-install) in the process > and less verbosely too: dracut --kver $(make -s kernelrelease) kernel-install is normally meant to copy the image over to /boot/ as well afaik; maybe it did not do that in your case because you already had placed it there manually? > Perhaps you could add generic details such as I provided in the > reference section for distros where installkernel doesn't exist or don't > perform all the steps required. Go look, they are there since the start. They differ from your instructions though, as you put the image in /usr/lib/modules/ which only works with distros that have kernel-install. Hmmm. Maybe it at some point will likely be better to just use it for the manual install instructions; but it feels a bit like it's to early for that. Not sure. >>> 3. The dependencies for kernel building in OpenSuse and other major >>> distros are incomplete, >> So what was missing? > Sorry, I don't remember. I checked using a container and fixed this this. > The compile/build threw some error and I looked > up how to install kernel building dependencies in OpenSuse only to find > out there was a pattern for it already. I just checked, the command you provided earlier would download ~250 MByte of packages that would consume 1,5 GByte disk space, all of which are unneeded afaics. I'm taken a bit back and forth there, but I think sticking to just listing the packages that are actually needed might be the better approach. > Perhaps you could list the basic dependencies in the main section and > provide the collection/patterns in the reference section. I want to keep the main section distro-agnostic as much as possible; listing package names for distros would also make it longer. I think it's better to do that in the reference section. >>> 4. The command to build RPM package (make binrpm-pkg) fails as the >>> modules are installed into "/home//linux/.../lib" while depmod >>> checks for modules in "/home//linux/.../usr/lib". >> That sounds like a bug that should be reported and fixed, not something >> that docs should catch and work around. Could you report that? > Please, could you tell me where to report this bug? Kernel bugzilla? > Which category/component? Just sent a mail to Masahiro Yamada with linux-kbuild@vger.kernel.org and linux-kernel@vger.kernel.org in CC. > Thanks for all your help ???? Thx for your feedback, it helped making things better! Ciao, Thorsten