Bug 251808

Summary: boot: entering geli password fails (FreeBSD 12.2, 12.3, 13.0, probably others)
Product: Base System Reporter: Martin Birgmeier <d8zNeCFG>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: arne
Priority: ---    
Version: 13.0-RELEASE   
Hardware: Any   
OS: Any   

Description Martin Birgmeier 2020-12-13 14:25:21 UTC
Scenario:
- FreeBSD 12.2-RELEASE-p2 r368500M (also 12.2-RELEASE and 12.2-RELEASE-p1)
- Booting from ufs
- ZFS on geli with password prompt on boot
- The machine is cold booted.

Result:
- Sometimes (maybe 10% of boot attempts), it is not possible to successfully enter the geli password. All entries are refused as wrong until no retries are left.

Workaround:
- Shut off the machine and perform another cold boot.

Note:
- This started happening right after the installation of 12.2. It has never happened before.
- This happens on multiple machines, all running the same 12.2 release.

-- Martin
Comment 1 Arne Steinkamm 2022-01-04 15:01:11 UTC
I have the same problem.
FreeBSD 13.0-RELEASE, server with 24 disks plus bootdevice.
Bootdevice using -g and geli support in loader.efi.

Each of the data disks with independent geli setup using 64kb keyfile(s) and a common passphrase.
Geli keyfiles in loader.conf the same way as it always worked with FreeBSD <= 12.1

Every boot only a random number of disks get attached with the cached passphrase. All others cannot be attached, the input is not accepted.
One of 10 boots works and all disks get attached.
All other boots are failing with different disks each time.
Comment 2 Martin Birgmeier 2022-01-04 15:07:25 UTC
Good to see that I am not alone with this... :-)

It is interesting to see that this seems to be a per-disk issue. That should make finding the problematic spot easier.

Btw, this now also happens on 12.3, with about the same frequency.

-- Martin
Comment 3 Arne Steinkamm 2022-01-04 16:45:02 UTC
Can you please change the bug description?

With Version 12.2 and Affects Only me there is zero change that someone is looking at this bug.
Comment 4 Martin Birgmeier 2022-01-04 16:52:05 UTC
Change description to indicate that this affects multiple versions of FreeBSD, and not only me.

-- Martin
Comment 5 Arne Steinkamm 2022-01-04 17:04:30 UTC
I wrote an email to you with my contact data. I guess we have the same mother language.