Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp74173rdb; Thu, 1 Feb 2024 02:28:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHa9f/mBMaRfjrisK1Bz1XF5UfvKLasZgxCH4BK0csE3KfLnlJphtK+3GhASdoCZI1RV5sQ X-Received: by 2002:a17:906:2c51:b0:a23:57a1:d85b with SMTP id f17-20020a1709062c5100b00a2357a1d85bmr1444062ejh.74.1706783299713; Thu, 01 Feb 2024 02:28:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706783299; cv=pass; d=google.com; s=arc-20160816; b=KWXDMDGsqmhsl/5FZgE8HDYrDrO4yrc9evyWT+n6iUsgnGUS7SJWBspLxJCBVmAL0/ YTsVW8ARuRMkG5RjSbjmIqyfANbWeYO/0W5/2ZTmqarczoXWY6U+L523eM6VNWoFTWaw iqpwzG55iGUYwORjP4b77svnMUfQ2Gh4Nf7aIVA37Murk4N2KXzXK1es/G2LyqpphO4c 4s+dQvh4h7I/06ddXhtSvDDyj47KDbTahVgHRrweji5/O6/a5OLjmgWHzfd9uu4iCvWG u3Q4OfAM60KIwny/Q8tdc3e3TkNTr62bf8IYp8W88mhtIbSFa3GgTUK8mUwgWqLoTuBA tDhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:reply-to:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=Na+OD0p+WmUzPnxISz31kPdOK/W1DcRXblE9M7HDmjg=; fh=jHBNAM5txDdpwBOLuWvNsJr3g4NNWRI8xyp7rarXLyA=; b=Xjke3PoaUbUuTqKDb5e9yAABEeKXUJm1TgUuppt3ikMWazq4tlaqPQKeMUjYWhMg9o 8ytWRsjWcWx9a1JhK+FS0fxgnnfkwKkGZ5iWyV+aeNlwijDNMN24eYC9o6Yj+5EjTZu0 SV+f/IrFZBtpi+uf6pYErf2JIrGVWd+iNeXxxyWeAgPc+5SyCje8U82ub1/p4KlPwBVd MWmSPl3SUXwGmMtb0qvDWyUHCddoAhgAOz7xA3+4f5nKxfwTHTOA7Dg9JcO8GKnFQPEd vdSmJCkY333Cy0MpKds58/dKHp4svUfxj7TFuG6U/U3xhdjb2Z65E7x6J734J87m59+k Ua3w==; 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-47960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47960-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVHNGKBeH2hXNUKrS7WS39f70aIBJl2wn9Ivk6i65Ry9cbbKVLBTTb3TKOv+YBfgLtrEbBOFG4+04a9xGJbBOXMulzVy36Hpo7yhNXoLA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j23-20020a170906279700b00a3684f489aasi1332604ejc.411.2024.02.01.02.28.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 02:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47960-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; arc=pass (i=1 spf=pass spfdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-47960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47960-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 124091F223CA for ; Thu, 1 Feb 2024 10:26:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7316215CD69; Thu, 1 Feb 2024 10:25:36 +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 CE25F4DA19; Thu, 1 Feb 2024 10:25:33 +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=1706783136; cv=none; b=ghCs1OI/Q6h6wKwGCKOnUIh/hx4N8UTDqcmmhiakrFb6fvQ+144OuMRzswzItUCD8Q9EDhY8bFTZWSPi2pysukfDOlMeOJXG+eUDPdEmizO0+2BMAeZqyi9HS9avLC+47aiiLp7Lkqqke0CwqF3NDC59dHQQuQGau1KJLqHgOWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706783136; c=relaxed/simple; bh=OQNMfD7l22pZXc5xj4re2mrx8QNM3zdYIZ3qCt93++8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TazCTMV7fNR6sRc+R+R96Wg3VVingr4RIFP9opupRSyCO488tJl7kADLlARANNSfYwfhlS/alLsMNCliISDTMGqiIOB3/j5LG262Lk08DpIGCz3TH+rwoLJwBJDUUn5j8OKELSkdNGmIxmOhm203JAy/mwadsxeIhl1cs8p1Z9g= 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 1rVUG9-00036B-Bn; Thu, 01 Feb 2024 11:25:29 +0100 Message-ID: <7d3cee75-ee74-4348-947a-7e4bce5484b2@leemhuis.info> Date: Thu, 1 Feb 2024 11:25:28 +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: [btrfs] commit bc27d6f0aa0e4de184b617aceeaf25818cc646de breaks update-grub Content-Language: en-US, de-DE To: Anand Jain , Alex Romosan , CHECK_1234543212345@protonmail.com, brauner@kernel.org Cc: linux-btrfs , Linux kernel regressions list , linux-kernel@vger.kernel.org, Chris Mason , Josef Bacik , David Sterba , dsterba@suse.cz References: <39e3a4fe-d456-4de4-b481-51aabfa02b8d@leemhuis.info> <20240111155056.GG31555@twin.jikos.cz> <20240111170644.GK31555@twin.jikos.cz> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1706783133;05226587; X-HE-SMSGID: 1rVUG9-00036B-Bn Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone. Anand, what's the status wrt to below issue (which afaics seems to affect quite a few people)? Things look stalled, but I might be missing something, that's why I ask for a quick update. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke On 12.01.24 00:24, Anand Jain wrote: > On 11/01/2024 22:36, David Sterba wrote: >> On Thu, Jan 11, 2024 at 04:50:56PM +0100, David Sterba wrote: >>> On Thu, Jan 11, 2024 at 12:45:50PM +0100, Thorsten Leemhuis wrote: >>>> >>>> On 08.01.24 15:11, Alex Romosan wrote: >>>>> >>>>> Running my own compiled kernel without initramfs on a lenovo thinkpad >>>>> x1 carbon gen 7. >>>>> >>>>> Since version 6.7-rc1 i haven't been able to to a grub-update, >>>>> >>>>> instead i get this error: >>>>> >>>>> grub-probe: error: cannot find a device for / (is /dev mounted?) solid >>>>> state drive >>>>> >>>>> 6.6 was the last version that worked. >>>>> >>>>> Today I did a git-bisect between these two versions which identified >>>>> commit bc27d6f0aa0e4de184b617aceeaf25818cc646de btrfs: scan but don't >>>>> register device on single device filesystem as the culprit. reverting >>>>> this commit from 6.7 final allowed me to run update-grub again. >>>>> >>>>> not sure if this is the intended behavior or if i'm missing some other >>>>> kernel options. any help/fixes would be appreciated. >>>> >>>> Thanks for the report. To be sure the issue doesn't fall through the >>>> cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression >>>> tracking bot: >>>> >>>> #regzbot ^introduced bc27d6f0aa0e4de184b617aceeaf25818cc646de >>>> #regzbot title btrfs: update-grub broken (cannot find a device for / >>>> (is >>>> /dev mounted?)) >>>> #regzbot ignore-activity >>> >>> The bug is also tracked at >>> https://bugzilla.kernel.org/show_bug.cgi?id=218353 . >> >> About the fix: we can't simply revert the patch because the temp_fsid >> depends on that. A workaround could be to check if the device path is >> "/dev/root" and still register the device. But I'm not sure if this does >> not break the use case that Steamdeck needs, as it's for the root >> partition. > > > Thank you for the report. > > The issue seems more complex than a simple scenario, as the following > test-case works well: > >   $ mount /dev/sdb1 /btrfs >   $ cat /proc/self/mountinfo | grep btrfs > 345 63 0:34 / /btrfs rw,relatime shared:179 - btrfs /dev/sdb1 > rw,space_cache=v2,subvolid=5,subvol=/ > > However, the relevant part of the commit > bc27d6f0aa0e4de184b617aceeaf25818cc646de that may be failing could > be in identifying a device, whether it is the same or different > For this, we use: > >      lookup_bdev(path, &path_devt); > > and match with the devt(MAJ:MIN) saved in the btrfs_device; > would this work during initrd? I need to dig more. Trying > to figure out how can I reproduce this. > > Thanks, Anand > >