You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@3hhh i have analysed the code, and actually it works as intended since all boards have export CONFIG_BOOT_REQ_HASH=n since Heads never intended to force this but warn and permit boot. We could
Say more clearly that restricted boot enforces hash check of default boot
Switch all boards to export CONFIG_BOOT_REQ_HASH=y
Remove all traces of checks for "CONFIG_BOOT_REQ_HASH" in code
On Wed, 04 Nov 2026 04:30:31 -0800 Thierry Laurion ***@***.***> wrote:
tlaurion left a comment (linuxboot/heads#2247)
@3hhh is this a regression to you since
#2150 ?
That looks like it may be related, yes.
But I haven't tested without the patch.
ie QubesOS with Xen updates in same binary under /boot
1. xen changed on os, system reboots, hash different under
kexec_hashes.txt and kexec_default_hashes.txt 3. heads checks for
kexec_hashes.txt first, see change, reports file changes, asks for
resign 4. can't replicate
So you modified which file for this issue to happen? Will replicate
I noticed it during Qubes OS update of /boot/xen-4.19.6.gz wrt the
current critical security vulnerability in Xen. I updated from
`xen-4.19.6-2` to `xen-4.19.6-3`, i.e. the file name remained the same,
but the content changed.
As I had said:
I was asked to re-sign, did that, then heads correctly
complained about the default boot hash having changed, even showed some
dialog with the modified Xen file, I pressed OK (no other button
available), it stated that it would start an emergency console and then
it just continued to boot.
It should rather ask me to re-sign and certainly not boot into a
possibly compromised system imho.
Well. Switching boards configs CONFIG_BOOT_REQ_HASH=n -> CONFIG_BOOT_REQ_HASH=y is not enough in the sense it drops to Recovery Shell if globash hashes good but default boot hashes wrong.
Following what heads tried to do recently which is to guard and guide user into doing the right thing, this will need more work.
I see. I wonder what the flag is for then though...
Failing (die) once went to recovery and was introduced in 2017 and never enforced in board configs. And enforcing it today in master dies, which die in code are really limited since then to when something fails badly, ie unexpected. And in master, when init dies it respawn, showing a warning.
Tldr no policy (gui-init, basic or any other boot script called in board from init) ever used it. Expected way is for the user to use options, show boot options,and set a new default since user created digests and is currently warned and permitting boot. So not a bug, but a "feature" in the sense that default boot hashes are not restricted to be good and warn currently.
Agreed it should offer guidance, but that is not a simple fix.
574debf0e7c5ebf3947067e9e0f381a4fae611a47512aaadee6f4dd29ac49cfd heads-EOL_t530-hotp-maximized-202611111552-v0.2.1-3321-gdbb96b9.rom indeed seems to fix the issue, thanks a lot!
Btw I noticed that CircleCI now requires authentication to view the logs or download the artifacts, which is rather annoying.
Le ven. 13 nov. 2026, 12 h 01, 3hhh ***@***.***> a écrit :
*3hhh* left a comment (linuxboot/heads#2247)
<#2247 (comment)>
574debf0e7c5ebf3947067e9e0f381a4fae611a47512aaadee6f4dd29ac49cfd
heads-EOL_t530-hotp-maximized-202611111552-v0.2.1-3321-gdbb96b9.rom
indeed seems to fix the issue, thanks a lot!
Btw I noticed that CircleCI now requires authentication to view the logs
or download the artifacts, which is rather annoying.
Circleci accepts single sign on with GitHub, not my problem and should not
be annoyance. Only solution here would be to link a read only token from
GitHub to circleci and have logic from circleci to post comment with ROMs
and hashes to pr. Would add noise but resolve issue. Help wanted otherwise
can't fix myself.
Thanks for testing. Can you at least thumb up original or description so I
can consider this as review and merge @3hhh? That would be helpful now and
for the future. Thanks for your contributions once more, means a lot.
Activity
tlaurion commentedon Nov 4, 2026
@3hhh is this a regression to you since #2150 ?
ie QubesOS with Xen updates in same binary under /boot
So you modified which file for this issue to happen? Will replicate
tlaurion commentedon Nov 4, 2026
@3hhh i have analysed the code, and actually it works as intended since all boards have
export CONFIG_BOOT_REQ_HASH=nsince Heads never intended to force this but warn and permit boot. We couldexport CONFIG_BOOT_REQ_HASH=yOpinions?
3hhh commentedon Nov 4, 2026
tlaurion commentedon Nov 4, 2026
A possible implementation could be
3hhh commentedon Nov 4, 2026
The refresh together with the others seems sensible.
And I'd vote for
CONFIG_BOOT_REQ_HASH=yfor now, if that fixes the "boot anyway" issue. Then maybe later remove all traces of it.tlaurion commentedon Nov 4, 2026
Can you open a PR with the desired change since we now understand the policy is correct and it's not a regression @3hhh ?
Otherwise I'll do it when I get some free time.
tlaurion commentedon Nov 5, 2026
Well. Switching boards configs
CONFIG_BOOT_REQ_HASH=n->CONFIG_BOOT_REQ_HASH=yis not enough in the sense it drops to Recovery Shell if globash hashes good but default boot hashes wrong.Following what heads tried to do recently which is to guard and guide user into doing the right thing, this will need more work.
3hhh commentedon Nov 5, 2026
I see. I wonder what the flag is for then though...
tlaurion commentedon Nov 5, 2026
Failing (die) once went to recovery and was introduced in 2017 and never enforced in board configs. And enforcing it today in master dies, which die in code are really limited since then to when something fails badly, ie unexpected. And in master, when init dies it respawn, showing a warning.
Tldr no policy (gui-init, basic or any other boot script called in board from init) ever used it. Expected way is for the user to use options, show boot options,and set a new default since user created digests and is currently warned and permitting boot. So not a bug, but a "feature" in the sense that default boot hashes are not restricted to be good and warn currently.
Agreed it should offer guidance, but that is not a simple fix.
default boot: gate the saved default entry on its own hashes
config, initrd: remove the unused CONFIG_BOOT_REQ_HASH knob
kexec-select-boot: keep a cancelled menu out of recovery
kexec-select-boot: harden the default boot hash gate
initrd: complete the boot-menu cancel path across callers
doc: document the default boot hash gate and the boot-menu cancel path
78 remaining items
default boot: gate the saved default entry on its own hashes
config, initrd: remove the unused CONFIG_BOOT_REQ_HASH knob
kexec-select-boot: keep a cancelled menu out of recovery
kexec-select-boot: harden the default boot hash gate
initrd: complete the boot-menu cancel path across callers
doc: document the default boot hash gate and the boot-menu cancel path
tlaurion commentedon Nov 12, 2026
@3hhh Can you test #2255 ?
3hhh commentedon Nov 12, 2026
3hhh commentedon Nov 13, 2026
574debf0e7c5ebf3947067e9e0f381a4fae611a47512aaadee6f4dd29ac49cfd heads-EOL_t530-hotp-maximized-202611111552-v0.2.1-3321-gdbb96b9.romindeed seems to fix the issue, thanks a lot!Btw I noticed that CircleCI now requires authentication to view the logs or download the artifacts, which is rather annoying.
tlaurion commentedon Nov 13, 2026
headsup0129342 commentedon Nov 15, 2026
I am having this same issue with the same screenshot as seen here: https://forum.qubes-os.org/t/security-testing-patch-repeatedly-failing-verification-during-heads-boot/43966
I guess I am just wondering if the xen-4.19.6.gz is in fact compromise or if this is just a heads bug on a recent dom0 update?
tlaurion commentedon Nov 15, 2026
Sorry for the mess @headsup0129342, replied under https://forum.qubes-os.org/t/security-testing-patch-repeatedly-failing-verification-during-heads-boot/43966/7 and reported fixed (this is not the same issue reported there BTW?) under #2255
doc: document the default boot hash gate and the boot-menu cancel path
Merge pull request linuxboot#2255 from tlaurion/fix-2247-default-boot…