New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot Password Fails Always When First Entry Was Incorrect #1740

Open
Nekroze opened this Issue Feb 11, 2016 · 18 comments

Comments

Projects
None yet
5 participants
@Nekroze

Nekroze commented Feb 11, 2016

I have a consistent issue on my laptop using Qubes 3.1 RC2 where if I enter the boot up password (for an encrypted root file system) and type the password incorrect the first time, any following attempts to input the password (regardless of the password being correct or not) will not be accepted and will not progress to boot.

The only solution I have found is to reboot and type it in correctly the first time.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Apr 6, 2016

Member

Are you still experiencing this issue on 3.1 (stable)? I am unable to reproduce it.

Member

andrewdavidwong commented Apr 6, 2016

Are you still experiencing this issue on 3.1 (stable)? I am unable to reproduce it.

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Apr 8, 2016

@axon-qubes I am still having the issue with the latest stable build I have installed.

Since you are unable to reproduce perhaps it is more specific to my configuration. I am using non UEFI booting and have Qubes installed on a BTRFS encrypted raid 0.

Let me know if I can provide any other information to help.

While this is technically a bug I can actually see it possible being useful, no HID based brute forcing will work because the first attempt failing causes all others to fail even if they are correct. But I don't like using a bug to (arguably) "enhance" security.

Nekroze commented Apr 8, 2016

@axon-qubes I am still having the issue with the latest stable build I have installed.

Since you are unable to reproduce perhaps it is more specific to my configuration. I am using non UEFI booting and have Qubes installed on a BTRFS encrypted raid 0.

Let me know if I can provide any other information to help.

While this is technically a bug I can actually see it possible being useful, no HID based brute forcing will work because the first attempt failing causes all others to fail even if they are correct. But I don't like using a bug to (arguably) "enhance" security.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Apr 8, 2016

Member

Since you are unable to reproduce perhaps it is more specific to my configuration. I am using non UEFI booting and have Qubes installed on a BTRFS encrypted raid 0.

Yes, it sounds like it probably has to do with one of those factors.

Let me know if I can provide any other information to help.

During the startup process, when you reach the grey screen with the Qubes logo where you usually enter your passphrase, press the Delete key to view the console. You can also enter your passphrase from this interface. See if you notice any helpful or relevant error messages through the startup process (especially after entering your passphrase incorrectly).

Member

andrewdavidwong commented Apr 8, 2016

Since you are unable to reproduce perhaps it is more specific to my configuration. I am using non UEFI booting and have Qubes installed on a BTRFS encrypted raid 0.

Yes, it sounds like it probably has to do with one of those factors.

Let me know if I can provide any other information to help.

During the startup process, when you reach the grey screen with the Qubes logo where you usually enter your passphrase, press the Delete key to view the console. You can also enter your passphrase from this interface. See if you notice any helpful or relevant error messages through the startup process (especially after entering your passphrase incorrectly).

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Apr 14, 2016

@axon-qubes: I get no errors or anything I would not expect after entering it wrong followed by correct, it just goes back to the prompt after entering it correctly or incorrectly. After entering it wrong one or two more times it says the crypto service for the root disk has failed and no longer will ask for passwords.

Nekroze commented Apr 14, 2016

@axon-qubes: I get no errors or anything I would not expect after entering it wrong followed by correct, it just goes back to the prompt after entering it correctly or incorrectly. After entering it wrong one or two more times it says the crypto service for the root disk has failed and no longer will ask for passwords.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Apr 14, 2016

Member

Maybe @marmarek can help.

Member

andrewdavidwong commented Apr 14, 2016

Maybe @marmarek can help.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Apr 14, 2016

Member

Does it prompt for the same thing (when you switch to text prompt)? Or maybe second and next prompts are about different disk? Do you see any additional messages between prompts?
That may have something to do with RAID0 - for example it may try to use one of mirrored disk directly. That would be a bug obviously, but I'm just guessing.

Member

marmarek commented Apr 14, 2016

Does it prompt for the same thing (when you switch to text prompt)? Or maybe second and next prompts are about different disk? Do you see any additional messages between prompts?
That may have something to do with RAID0 - for example it may try to use one of mirrored disk directly. That would be a bug obviously, but I'm just guessing.

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Apr 18, 2016

@marmarek The second prompt is for the same disk. In between attempts (not including when the previously mentioned crypto fail message occurs) it just says "Started Forward Password Requests to Plymouth" which it prints 3 or 4 times each attempt before prompting for input once more.

Nekroze commented Apr 18, 2016

@marmarek The second prompt is for the same disk. In between attempts (not including when the previously mentioned crypto fail message occurs) it just says "Started Forward Password Requests to Plymouth" which it prints 3 or 4 times each attempt before prompting for input once more.

@liilac

This comment has been minimized.

Show comment
Hide comment
@liilac

liilac Jul 4, 2016

Could you take a photo of that output page?

liilac commented Jul 4, 2016

Could you take a photo of that output page?

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Jul 6, 2016

@ileyd: My apologies but I have switched to using LVM rather than BTRFS for the RAID0 root which does not have this issue. Sadly I do not have any hard drives left to run a test install on and I need my primary laptop running perfectly over the next month or so for work.

If anyone else wants to try and replicate this I was using legacy/csm/bios booting on BTRFS raid0 for the root disk and the re-install that is not affected by this issue was the same except I used lvm2 (non thin) raid0 for the root disks and UEFI booting.

Nekroze commented Jul 6, 2016

@ileyd: My apologies but I have switched to using LVM rather than BTRFS for the RAID0 root which does not have this issue. Sadly I do not have any hard drives left to run a test install on and I need my primary laptop running perfectly over the next month or so for work.

If anyone else wants to try and replicate this I was using legacy/csm/bios booting on BTRFS raid0 for the root disk and the re-install that is not affected by this issue was the same except I used lvm2 (non thin) raid0 for the root disks and UEFI booting.

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Sep 13, 2016

Having now upgraded to 3.2rc3 where I was unable to successfully get UEFI booting to work (worked fine on 3.1 but thats another issue) so I am now using legacy/csm/bios booting with the ssd's in BTRFS raid0 and I have noticed that this issue has returned. Can't test further right now but wanted to make it known that this still seems to be happening for me.

Nekroze commented Sep 13, 2016

Having now upgraded to 3.2rc3 where I was unable to successfully get UEFI booting to work (worked fine on 3.1 but thats another issue) so I am now using legacy/csm/bios booting with the ssd's in BTRFS raid0 and I have noticed that this issue has returned. Can't test further right now but wanted to make it known that this still seems to be happening for me.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 23, 2016

Member

@Nekroze How about now? Are you still experiencing this issue?

Member

andrewdavidwong commented Dec 23, 2016

@Nekroze How about now? Are you still experiencing this issue?

@Nekroze

This comment has been minimized.

Show comment
Hide comment
@Nekroze

Nekroze Dec 24, 2016

@andrewdavidwong Unfortunately my laptop has taken a long dirt nap. I have ordered a Librem 13 however it will not have the hardware configuration required to test this however it was still happening as of about a month ago.

Nekroze commented Dec 24, 2016

@andrewdavidwong Unfortunately my laptop has taken a long dirt nap. I have ordered a Librem 13 however it will not have the hardware configuration required to test this however it was still happening as of about a month ago.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Dec 24, 2016

Member

In that case, since no one else has been able to reproduce this (as far as I'm aware), we'll close this one for now. If anyone experiences this in the future, let us know.

Member

andrewdavidwong commented Dec 24, 2016

In that case, since no one else has been able to reproduce this (as far as I'm aware), we'll close this one for now. If anyone experiences this in the future, let us know.

@jpouellet

This comment has been minimized.

Show comment
Hide comment
@jpouellet

jpouellet May 26, 2017

Contributor

I've intermittently observed this as long as I can remember, even recently.

After reading #977, where @rustybird describes:

Normally, the disk password entered during the boot process is used to decrypt both the root partition and the swap partition.

But if a wrong password is entered initially, subsequent tries prompt separately for the root partition and the swap partion password, i.e. you have to enter the same password twice now. This can be observed by looking at the LUKS UUIDs in the console (after pressing to leave the plymouth splash screen) or the journal.

I now wonder if the behavior I've been observing is not in fact the requirement of typing the correct passphrase twice if I mis-type it the first time. My passphrase is quite long and complex, and I've noticed a correlation between bad ergonomic positioning of the angle of my laptop relative to my arms and the frequency of getting it wrong, meaning that if I type it wrong the first time, there's a good chance I'll get it wrong more than once afterwards. There have been times where I very carefully type the password and strongly suspect I typed it correctly, but did continue booting. Perhaps I did get it right and then it prompts again (without observable difference) for the swap partition?

Perhaps that's been the real issue all along?

Contributor

jpouellet commented May 26, 2017

I've intermittently observed this as long as I can remember, even recently.

After reading #977, where @rustybird describes:

Normally, the disk password entered during the boot process is used to decrypt both the root partition and the swap partition.

But if a wrong password is entered initially, subsequent tries prompt separately for the root partition and the swap partion password, i.e. you have to enter the same password twice now. This can be observed by looking at the LUKS UUIDs in the console (after pressing to leave the plymouth splash screen) or the journal.

I now wonder if the behavior I've been observing is not in fact the requirement of typing the correct passphrase twice if I mis-type it the first time. My passphrase is quite long and complex, and I've noticed a correlation between bad ergonomic positioning of the angle of my laptop relative to my arms and the frequency of getting it wrong, meaning that if I type it wrong the first time, there's a good chance I'll get it wrong more than once afterwards. There have been times where I very carefully type the password and strongly suspect I typed it correctly, but did continue booting. Perhaps I did get it right and then it prompts again (without observable difference) for the swap partition?

Perhaps that's been the real issue all along?

@jpouellet

This comment has been minimized.

Show comment
Hide comment
@jpouellet

jpouellet May 26, 2017

Contributor

FWIW I'm not using btrfs, as seemed to be related to #977.

Contributor

jpouellet commented May 26, 2017

FWIW I'm not using btrfs, as seemed to be related to #977.

@jpouellet

This comment has been minimized.

Show comment
Hide comment
@jpouellet

jpouellet May 26, 2017

Contributor

Potentially relevant: #1912 (comment) ?

Contributor

jpouellet commented May 26, 2017

Potentially relevant: #1912 (comment) ?

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong May 26, 2017

Member

I now wonder if the behavior I've been observing is not in fact the requirement of typing the correct passphrase twice if I mis-type it the first time. My passphrase is quite long and complex, and I've noticed a correlation between bad ergonomic positioning of the angle of my laptop relative to my arms and the frequency of getting it wrong, meaning that if I type it wrong the first time, there's a good chance I'll get it wrong more than once afterwards. There have been times where I very carefully type the password and strongly suspect I typed it correctly, but did continue booting. Perhaps I did get it right and then it prompts again (without observable difference) for the swap partition?

Perhaps that's been the real issue all along?

Could very well be. This one is inherently difficult to diagnose.

Member

andrewdavidwong commented May 26, 2017

I now wonder if the behavior I've been observing is not in fact the requirement of typing the correct passphrase twice if I mis-type it the first time. My passphrase is quite long and complex, and I've noticed a correlation between bad ergonomic positioning of the angle of my laptop relative to my arms and the frequency of getting it wrong, meaning that if I type it wrong the first time, there's a good chance I'll get it wrong more than once afterwards. There have been times where I very carefully type the password and strongly suspect I typed it correctly, but did continue booting. Perhaps I did get it right and then it prompts again (without observable difference) for the swap partition?

Perhaps that's been the real issue all along?

Could very well be. This one is inherently difficult to diagnose.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong May 26, 2017

Member

Could very well be. This one is inherently difficult to diagnose.

At least with respect to normal usage. If you wanted to test it, perhaps the way to go would be to have a very short, simple password (just for testing purposes, so that you can be sure you've typed it correctly), then see whether typing it incorrectly leads to having to type it in twice.

Member

andrewdavidwong commented May 26, 2017

Could very well be. This one is inherently difficult to diagnose.

At least with respect to normal usage. If you wanted to test it, perhaps the way to go would be to have a very short, simple password (just for testing purposes, so that you can be sure you've typed it correctly), then see whether typing it incorrectly leads to having to type it in twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment