unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#66746: LUKS password prompt invisible, prompts twice
@ 2023-10-25 11:49 Caleb Herbert
  2023-10-26 18:44 ` kasper.andersson--- via Bug reports for GNU Guix
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Caleb Herbert @ 2023-10-25 11:49 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

Hardware: ThinkPad X200
Firmware: Libreboot 2016
OS: Guix System

Expected behavior:
Password prompt. Enter LUKS passphrase. Log into computer.

Actual behavior:
Password prompt. Enter LUKS passphrase. Select boot option from GRUB menu. Hangs, no password prompt. Enter passphrase (again) anyway: Boots normally.

Steps to reproduce:
1. Turn on laptop.
2. Select SeaBIOS payload (default boot option doesn't work).
3. Respond to LUKS prompt.
4. Select boot option.
5. Stare at gray screen with no password prompt.

-- 
Caleb
https://bluehome.net/csh/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
@ 2023-10-26 18:44 ` kasper.andersson--- via Bug reports for GNU Guix
  2023-10-27 18:44 ` Josselin Poiret via Bug reports for GNU Guix
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: kasper.andersson--- via Bug reports for GNU Guix @ 2023-10-26 18:44 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

I can reproduce this on kernels 6.1.58, 6.5.7. Rolling back to a generation with kernel 6.1.57 fixes it, though, this is a correlation and I do not know if the kernel necessarily is what caused it.

As far as I know, the double prompt is expected behaviour (65002 seems to have a fix for that), as /boot is encrypted. What happens for me is that my custom GRUB background seems to cover the Linux framebuffer until I enter my password. After entering my LUKS password, everything works fine and I see output from Shepherd and Xorg starts as expected.

Hardware: Lenovo Thinkpad T460s

[-- Attachment #2: Type: text/html, Size: 823 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
  2023-10-26 18:44 ` kasper.andersson--- via Bug reports for GNU Guix
@ 2023-10-27 18:44 ` Josselin Poiret via Bug reports for GNU Guix
  2023-10-27 19:02   ` Saku Laesvuori via Bug reports for GNU Guix
  2023-10-28 11:07 ` kasper.andersson--- via Bug reports for GNU Guix
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 12+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2023-10-27 18:44 UTC (permalink / raw)
  To: Caleb Herbert, 66746

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

Hi Caleb,

Caleb Herbert <csh@bluehome.net> writes:

> Hardware: ThinkPad X200
> Firmware: Libreboot 2016
> OS: Guix System
>
> Expected behavior:
> Password prompt. Enter LUKS passphrase. Log into computer.
>
> Actual behavior:
> Password prompt. Enter LUKS passphrase. Select boot option from GRUB menu. Hangs, no password prompt. Enter passphrase (again) anyway: Boots normally.

I think this is a combination of two things: first, we currently need to
unlock the drive once for GRUB, and then once when Linux boots, hence
the two password prompts.  This is a known limitation, but the usual
workaround of adding a keyfile to the initrd wouldn't work in our case
for security reasons: the keyfile would end up in the store and be
world-readable, a disaster.

Regarding the second prompt being invisible, I think it might be related
to the framebuffer initialization for Libreboot since there have been
lots of reports about this.  I don't know anything myself, but maybe
someone else could chime in?

Best,
-- 
Josselin Poiret

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-27 18:44 ` Josselin Poiret via Bug reports for GNU Guix
@ 2023-10-27 19:02   ` Saku Laesvuori via Bug reports for GNU Guix
  0 siblings, 0 replies; 12+ messages in thread
From: Saku Laesvuori via Bug reports for GNU Guix @ 2023-10-27 19:02 UTC (permalink / raw)
  To: Josselin Poiret; +Cc: Caleb Herbert, 66746

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

> Hi Caleb,
> 
> Caleb Herbert <csh@bluehome.net> writes:
> 
> > Hardware: ThinkPad X200
> > Firmware: Libreboot 2016
> > OS: Guix System
> >
> > Expected behavior:
> > Password prompt. Enter LUKS passphrase. Log into computer.
> >
> > Actual behavior:
> > Password prompt. Enter LUKS passphrase. Select boot option from GRUB menu. Hangs, no password prompt. Enter passphrase (again) anyway: Boots normally.
> 
> I think this is a combination of two things: first, we currently need to
> unlock the drive once for GRUB, and then once when Linux boots, hence
> the two password prompts.  This is a known limitation, but the usual
> workaround of adding a keyfile to the initrd wouldn't work in our case
> for security reasons: the keyfile would end up in the store and be
> world-readable, a disaster.

I believe a patch[1] enabling this is waiting for a review.

[1]: https://issues.guix.gnu.org/65002

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
  2023-10-26 18:44 ` kasper.andersson--- via Bug reports for GNU Guix
  2023-10-27 18:44 ` Josselin Poiret via Bug reports for GNU Guix
@ 2023-10-28 11:07 ` kasper.andersson--- via Bug reports for GNU Guix
  2023-10-29  8:21 ` Jake
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: kasper.andersson--- via Bug reports for GNU Guix @ 2023-10-28 11:07 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

With regards to the invisible LUKs prompt; my laptop does not run libreboot, but is still affected. Seems more like the Thinkpad framebuffer driver has a bug on the Linux or Grub side to me.

[-- Attachment #2: Type: text/html, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
                   ` (2 preceding siblings ...)
  2023-10-28 11:07 ` kasper.andersson--- via Bug reports for GNU Guix
@ 2023-10-29  8:21 ` Jake
  2023-10-29 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 12+ messages in thread
From: Jake @ 2023-10-29  8:21 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

Hi

I’m also getting this bug (the second decrypt screen not showing up) with
Linux kernel versions 6.5.8 and 6.5.9 (the latest version as of writing);
6.5.7 does not have the bug for me.

The bug behaviour is the same on 2/2 of my Guix System machines. And it is
the same for both Linux and linux-libre kernels of the same version.

Thanks
Jake

[-- Attachment #2: Type: text/html, Size: 584 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
                   ` (3 preceding siblings ...)
  2023-10-29  8:21 ` Jake
@ 2023-10-29 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2023-10-30 10:50   ` Jake
  2023-10-29 16:04 ` James Smith via Bug reports for GNU Guix
                   ` (2 subsequent siblings)
  7 siblings, 1 reply; 12+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2023-10-29 11:48 UTC (permalink / raw)
  To: 66746

> I’m also getting this bug (the second decrypt screen not showing up) 
> with
> Linux kernel versions 6.5.8 and 6.5.9 (the latest version as of 
> writing);
> 6.5.7 does not have the bug for me.

Oh, this might be interesting…  At least it's something.

Could you diff a working 6.5.7 and broken 6.5.8 configuration?  The 
configuration is stored as /gnu/store/…-linux-libre-6.5.x/.config; 
there's no need to boot the kernel just to load the config.gz module.

If you use Coreboot or a derivative: do your broken kernels include 
<https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6d7e181ba18d11c92409a93936025fb46b9c8171>?

And if they do, have you tried booting with

   (initrd-modules (cons "framebuffer-coreboot" %base-initrd-modules))

by any chance?

Kind regards,

T G-R

Sent from a Web browser.  Excuse or enjoy my brevity.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
                   ` (4 preceding siblings ...)
  2023-10-29 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2023-10-29 16:04 ` James Smith via Bug reports for GNU Guix
  2023-10-30 12:33 ` Jake
  2023-10-30 16:49 ` X
  7 siblings, 0 replies; 12+ messages in thread
From: James Smith via Bug reports for GNU Guix @ 2023-10-29 16:04 UTC (permalink / raw)
  To: 66746

Hi everyone,

I've been hit by this bug as well on my desktop (AMD GPU, default UEFI).
Reading through this thread, and especially checking commit
6d7e181ba18d11c92409a93936025fb46b9c8171, what fixed the invisible LUKS
password prompt for me was adding simplefb to the list of initrd-modules
in my system config.

Hope this helps,
James Smith




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-29 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2023-10-30 10:50   ` Jake
  0 siblings, 0 replies; 12+ messages in thread
From: Jake @ 2023-10-30 10:50 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]

Hi Tobias

The initrd-modules snippet did not fix it.
Below is the diff of the .configs for 6.5.9 (not 6.5.8 sorry) and 6.5.7.

Thanks
Jake


3c3
< # Linux/x86_64 6.5.9-gnu Kernel Configuration
---
> # Linux/x86_64 6.5.7-gnu Kernel Configuration
2354c2354
< CONFIG_SYSFB_SIMPLEFB=y
---
> # CONFIG_SYSFB_SIMPLEFB is not set
2356,2363c2356
< CONFIG_GOOGLE_FIRMWARE=y
< # CONFIG_GOOGLE_SMI is not set
< # CONFIG_GOOGLE_CBMEM is not set
< CONFIG_GOOGLE_COREBOOT_TABLE=m
< # CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set
< CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT=m
< # CONFIG_GOOGLE_MEMCONSOLE_COREBOOT is not set
< # CONFIG_GOOGLE_VPD is not set
---
> # CONFIG_GOOGLE_FIRMWARE is not set
6956c6949
< CONFIG_DRM_SIMPLEDRM=m
---
> # CONFIG_DRM_SIMPLEDRM is not set
7085c7078
< CONFIG_FB_SIMPLE=m
---
> CONFIG_FB_SIMPLE=y

On Sun, Oct 29, 2023 at 11:49 AM Tobias Geerinckx-Rice via Bug reports for
GNU Guix <bug-guix@gnu.org> wrote:

> > I’m also getting this bug (the second decrypt screen not showing up)
> > with
> > Linux kernel versions 6.5.8 and 6.5.9 (the latest version as of
> > writing);
> > 6.5.7 does not have the bug for me.
>
> Oh, this might be interesting…  At least it's something.
>
> Could you diff a working 6.5.7 and broken 6.5.8 configuration?  The
> configuration is stored as /gnu/store/…-linux-libre-6.5.x/.config;
> there's no need to boot the kernel just to load the config.gz module.
>
> If you use Coreboot or a derivative: do your broken kernels include
> <
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6d7e181ba18d11c92409a93936025fb46b9c8171
> >?
>
> And if they do, have you tried booting with
>
>    (initrd-modules (cons "framebuffer-coreboot" %base-initrd-modules))
>
> by any chance?
>
> Kind regards,
>
> T G-R
>
> Sent from a Web browser.  Excuse or enjoy my brevity.
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2642 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
                   ` (5 preceding siblings ...)
  2023-10-29 16:04 ` James Smith via Bug reports for GNU Guix
@ 2023-10-30 12:33 ` Jake
  2023-10-30 16:49 ` X
  7 siblings, 0 replies; 12+ messages in thread
From: Jake @ 2023-10-30 12:33 UTC (permalink / raw)
  To: 66746

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

Hi Tobias

The initrd-modules snippet did not fix it.
Below is the diff of the .configs for 6.5.9 (not 6.5.8 sorry) and 6.5.7.

Thanks
Jake


3c3
< # Linux/x86_64 6.5.9-gnu Kernel Configuration
---
> # Linux/x86_64 6.5.7-gnu Kernel Configuration
2354c2354
< CONFIG_SYSFB_SIMPLEFB=y
---
> # CONFIG_SYSFB_SIMPLEFB is not set
2356,2363c2356
< CONFIG_GOOGLE_FIRMWARE=y
< # CONFIG_GOOGLE_SMI is not set
< # CONFIG_GOOGLE_CBMEM is not set
< CONFIG_GOOGLE_COREBOOT_TABLE=m
< # CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set
< CONFIG_GOOGLE_FRAMEBUFFER_COREBOOT=m
< # CONFIG_GOOGLE_MEMCONSOLE_COREBOOT is not set
< # CONFIG_GOOGLE_VPD is not set
---
> # CONFIG_GOOGLE_FIRMWARE is not set
6956c6949
< CONFIG_DRM_SIMPLEDRM=m
---
> # CONFIG_DRM_SIMPLEDRM is not set
7085c7078
< CONFIG_FB_SIMPLE=m
---
> CONFIG_FB_SIMPLE=y

[-- Attachment #2: Type: text/html, Size: 3589 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
                   ` (6 preceding siblings ...)
  2023-10-30 12:33 ` Jake
@ 2023-10-30 16:49 ` X
  2023-11-01 10:03   ` Jake
  7 siblings, 1 reply; 12+ messages in thread
From: X @ 2023-10-30 16:49 UTC (permalink / raw)
  To: 66746; +Cc: me

Also affected, stock thinkpad.  Can confirm that

    (initrd-modules (cons "simplefb" %base-initrd-modules))

does fix the issue for me.  Reverting
6d7e181ba18d11c92409a93936025fb46b9c8171 also fixes the issue.


T.

-- 
Tomas P4l4cl][n Volf
-- "There are only 10 types of people in the world: Those who
understand binary, and those who don't."




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#66746: LUKS password prompt invisible, prompts twice
  2023-10-30 16:49 ` X
@ 2023-11-01 10:03   ` Jake
  0 siblings, 0 replies; 12+ messages in thread
From: Jake @ 2023-11-01 10:03 UTC (permalink / raw)
  To: X; +Cc: me, 66746

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

A guix pull and reconfigure just now fixed it for me. I didn’t need to add
simplefb to os declaration.

Thanks
Jake

On Wed, 1 Nov 2023 at 1:06 am, X <volf.tomas@gmail.com> wrote:

> Also affected, stock thinkpad.  Can confirm that
>
>     (initrd-modules (cons "simplefb" %base-initrd-modules))
>
> does fix the issue for me.  Reverting
> 6d7e181ba18d11c92409a93936025fb46b9c8171 also fixes the issue.
>
>
> T.
>
> --
> Tomas P4l4cl][n Volf
> -- "There are only 10 types of people in the world: Those who
> understand binary, and those who don't."
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-11-01 10:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-25 11:49 bug#66746: LUKS password prompt invisible, prompts twice Caleb Herbert
2023-10-26 18:44 ` kasper.andersson--- via Bug reports for GNU Guix
2023-10-27 18:44 ` Josselin Poiret via Bug reports for GNU Guix
2023-10-27 19:02   ` Saku Laesvuori via Bug reports for GNU Guix
2023-10-28 11:07 ` kasper.andersson--- via Bug reports for GNU Guix
2023-10-29  8:21 ` Jake
2023-10-29 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2023-10-30 10:50   ` Jake
2023-10-29 16:04 ` James Smith via Bug reports for GNU Guix
2023-10-30 12:33 ` Jake
2023-10-30 16:49 ` X
2023-11-01 10:03   ` Jake

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).