* [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1
@ 2025-10-21 14:00 Dimitri John Ledkov
2025-10-21 16:07 ` Greg KH
2025-10-21 23:02 ` Nathan Chancellor
0 siblings, 2 replies; 3+ messages in thread
From: Dimitri John Ledkov @ 2025-10-21 14:00 UTC (permalink / raw)
To: stable; +Cc: regressions, Nathan Chancellor, masahiroy
If one enrolls linux kernel by-hash into db (for example using
virt-fw-vars), the secureboot fails with security violation as EDK2
computation of authenticode for the linux binary doesn't match the
enrolled hash.
This is reproducible in AWS VMs, as well as locally with EDK2 builds
with secureboot.
Not affected v6.17
Not affected v6.17.3
Affected v6.17.4
Affected v6.18-rc1
Affected v6.18-rc2
Suspected patches are:
$ git log --oneline v6.17.3..v6.17.4 -- scripts/
8e5e13c8df9e6 kbuild: Add '.rel.*' strip pattern for vmlinux
7b80f81ae3190 kbuild: Restore pattern to avoid stripping .rela.dyn from vmlinux
5b5cdb1fe434e kbuild: keep .modinfo section in vmlinux.unstripped
86f364ee58420 kbuild: always create intermediate vmlinux.unstripped
Reverting all of the above, makes secureboot with by-hash enrolled
into db work again.
I will try to bisect this further to determine the culprit. It feels
like the strip potentially didn't update section offsets or their
numbers or something like that.
--
Regards,
Dimitri.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1
2025-10-21 14:00 [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1 Dimitri John Ledkov
@ 2025-10-21 16:07 ` Greg KH
2025-10-21 23:02 ` Nathan Chancellor
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2025-10-21 16:07 UTC (permalink / raw)
To: Dimitri John Ledkov; +Cc: stable, regressions, Nathan Chancellor, masahiroy
On Tue, Oct 21, 2025 at 03:00:56PM +0100, Dimitri John Ledkov wrote:
> If one enrolls linux kernel by-hash into db (for example using
> virt-fw-vars), the secureboot fails with security violation as EDK2
> computation of authenticode for the linux binary doesn't match the
> enrolled hash.
>
> This is reproducible in AWS VMs, as well as locally with EDK2 builds
> with secureboot.
>
> Not affected v6.17
> Not affected v6.17.3
> Affected v6.17.4
> Affected v6.18-rc1
> Affected v6.18-rc2
great, we are bug compatible :)
Once this is fixed in Linus's tree, we will be glad to take the fix into
the stable branch.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1
2025-10-21 14:00 [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1 Dimitri John Ledkov
2025-10-21 16:07 ` Greg KH
@ 2025-10-21 23:02 ` Nathan Chancellor
1 sibling, 0 replies; 3+ messages in thread
From: Nathan Chancellor @ 2025-10-21 23:02 UTC (permalink / raw)
To: Dimitri John Ledkov
Cc: stable, regressions, masahiroy, Alexey Gladkov, Nicolas Schier
+ Nicolas and Alexey just for visibility
On Tue, Oct 21, 2025 at 03:00:56PM +0100, Dimitri John Ledkov wrote:
> If one enrolls linux kernel by-hash into db (for example using
> virt-fw-vars), the secureboot fails with security violation as EDK2
> computation of authenticode for the linux binary doesn't match the
> enrolled hash.
>
> This is reproducible in AWS VMs, as well as locally with EDK2 builds
> with secureboot.
>
> Not affected v6.17
> Not affected v6.17.3
> Affected v6.17.4
> Affected v6.18-rc1
> Affected v6.18-rc2
>
> Suspected patches are:
>
> $ git log --oneline v6.17.3..v6.17.4 -- scripts/
> 8e5e13c8df9e6 kbuild: Add '.rel.*' strip pattern for vmlinux
> 7b80f81ae3190 kbuild: Restore pattern to avoid stripping .rela.dyn from vmlinux
> 5b5cdb1fe434e kbuild: keep .modinfo section in vmlinux.unstripped
> 86f364ee58420 kbuild: always create intermediate vmlinux.unstripped
>
> Reverting all of the above, makes secureboot with by-hash enrolled
> into db work again.
>
> I will try to bisect this further to determine the culprit. It feels
> like the strip potentially didn't update section offsets or their
> numbers or something like that.
A bisect would definitely help since the first sentence of this message
is almost complete gibberish to me :) Is this a part of the build
process somewhere or does this happen after vmlinux is produced?
Cheers,
Nathan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-10-21 23:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 14:00 [REGRESSION] Secureboot violation for linux enrolled by-hash into db v6.17.4 and v6.18-rc1 Dimitri John Ledkov
2025-10-21 16:07 ` Greg KH
2025-10-21 23:02 ` Nathan Chancellor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox