From: Thiago Macieira <thiago.macieira@intel.com>
To: Dave Hansen <dave.hansen@intel.com>, Anand Suveer Jain <asj@kernel.org>
Cc: sashal@kernel.org, linux-btrfs@vger.kernel.org,
David Woodhouse <dwmw2@infradead.org>,
David Sterba <dsterba@suse.com>
Subject: Re: [PATCH 1/3] btrfs: derive f_fsid from on-disk fsuuid and dev_t
Date: Fri, 11 Sep 2026 09:07:29 -0700 [thread overview]
Message-ID: <qH1wH2-sQO2cdJ17lf_wvw@intel.com> (raw)
In-Reply-To: <dc5401d6-19ec-4588-bc9c-a7a0084b299a@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]
On Friday, 11 September 2026 07:51:16 Pacific Daylight Time Anand Suveer Jain
wrote:
> I wish I had more clarity on how OpenConnect uses the FSID before I
> comment. Do you know? Can you shed some light on this?
It's openconnect's option --key-password-from-fsid. It uses the FSID encoded
in hex format as the key's passphrase.
To reproduce, take any key without a password and do:
openssl rsa -in unencrypted-key.pem -out encrypted-key.pem
And paste your FSID as the password.
This is not real security, we all agree. David W can probably remember better
why this option exists, but I would suspect it was an IT mandate that a) the
key not be left unencrypted on disk and b) be specific to a given machine,
avoiding reuse by being copied to another. Ideally, we'd use TPM these days,
but there are still a lot of systems without it where Linux runs, and
especially a lot of legacy set ups.
But very simply, it's the fact that the FSID has been used as a stable
identifier and no longer is if the device in question is not itself stable.
> Also, a couple of quick checks:
>
> Is the underlying device MAJ:MIN changing before and after the upgrade?
Unknown. It's LVM and I don't know if the order of activation of LVs is
guaranteed. I wouldn't rely on it. I'll tell you next time I reboot if the
order is the same as this:
brw-rw---- 1 root disk 254, 0 Sep 7 20:28 cr-auto-1
brw-rw---- 1 root disk 254, 1 Sep 7 20:28 system-root
brw-rw---- 1 root disk 254, 2 Sep 7 20:28 system-swap
brw-rw---- 1 root disk 254, 3 Sep 7 20:28 system-pool_tmeta
brw-rw---- 1 root disk 254, 4 Sep 7 20:28 system-pool_tdata
brw-rw---- 1 root disk 254, 5 Sep 7 20:28 system-pool-tpool
brw-rw---- 1 root disk 254, 6 Sep 7 20:28 system-pool
brw-rw---- 1 root disk 254, 7 Sep 7 20:28 system-stuff
brw-rw---- 1 root disk 254, 8 Sep 7 20:28 system-home
brw-rw---- 1 root disk 254, 9 Sep 7 20:28 system-stuff2
Either way, the point is that it changed from 7.1 when the MAJ:MIN was not
mixed in.
> Are the original and cloned Btrfs filesystems mounted simultaneously?
No cloning is involved.
> Patch v3 (1/2) keeps the FSID persistent from the on-disk superblock and
> stops exposing the internal random FSID. However, if OpenConnect relies
> on statfs.f_fsid, patch v3 (2/2) now derives f_fsid from the underlying
> MAJ:MIN.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Principal Engineer - Intel DCG - Platform & Sys. Eng.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5176 bytes --]
next prev parent reply other threads:[~2026-09-11 16:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 14:23 [PATCH 0/3] fix s_uuid and f_fsid consistency for cloned filesystems Anand Jain
2026-02-26 14:27 ` [PATCH 1/3] btrfs: derive f_fsid from on-disk fsuuid and dev_t Anand Jain
2026-09-11 12:32 ` Dave Hansen
2026-09-11 14:51 ` Anand Suveer Jain
2026-09-11 16:07 ` Thiago Macieira [this message]
2026-09-11 18:12 ` David Woodhouse
2026-09-12 10:10 ` Anand Suveer Jain
2026-09-11 17:23 ` David Sterba
2026-09-12 10:19 ` Anand Suveer Jain
2026-02-26 14:27 ` [PATCH 2/3] btrfs: use on-disk uuid for s_uuid in temp_fsid mounts Anand Jain
2026-03-04 13:28 ` [PATCH 0/3] fix s_uuid and f_fsid consistency for cloned filesystems Christoph Hellwig
2026-03-05 9:32 ` Anand Jain
2026-03-05 14:21 ` Christoph Hellwig
2026-03-22 20:31 ` Theodore Tso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=qH1wH2-sQO2cdJ17lf_wvw@intel.com \
--to=thiago.macieira@intel.com \
--cc=asj@kernel.org \
--cc=dave.hansen@intel.com \
--cc=dsterba@suse.com \
--cc=dwmw2@infradead.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=sashal@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox