Bug 94632 - [geom] Kernel output resets input while GELI asks for passphrase
Summary: [geom] Kernel output resets input while GELI asks for passphrase
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-geom (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-18 08:50 UTC by Martin
Modified: 2018-06-17 03:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2006-03-18 08:50:18 UTC
When GELI encrypted partitions are detected, GEOM tries to setup the parameters and asks for passphrase. There is a problem with the kernel output going on, while the system is waiting for input. On my system during this phase acd0(4) is detected and all input (the passphrase) becomes invalid.

Another problem is that the passphrase prompt is not the last kernel message, but mixed with the other output. It's sometimes difficult to see what's going on. This problem is rather of cosmetic nature.

Fix: 

A workaround is to wait for the last kernel message and THEN begin to type the password.
How-To-Repeat: Initialize a GELI partition that uses a passphrase and restart the system.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-03-18 08:57:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-geom

Over to maintainer(s).
Comment 2 Zach Ploskey 2014-10-21 05:24:15 UTC
This issue is still present in 10.1-RC2. Entry of the GELI passphrase always fails on the first try if the passphrase is entered after the password prompt appears but, at least partially, during kernel output. If I wait for ~10 seconds for all the kernel output to stop, enter some backspaces for good measure, and then proceed to enter the passphrase, it will work on the first try.

Is the console device input somehow being invalidated by kernel output? How can that be prevented? Can either the kernel output or the passphrase prompt be delayed until the other has completed?

I'm not sure how many other people this bug may affect, but I am willing to test patches if people have ideas.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:45:17 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 4 Allan Jude freebsd_committer freebsd_triage 2018-06-17 03:13:15 UTC
There is a loader.conf tunable now, geom_eli_passphrase_prompt="YES" that will prompt for the GELI passphrase during the beastie menu, so the prompt does not become lost amongst the kernel device attach messages.

And older bug that prevented the correct password from working on later attempts was fixed some time ago.