Skip to content
New issue

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

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

Already on GitHub? # to your account

Goblin 0.7.1 fails to parse our PE files #237

Open
blitz opened this issue Oct 15, 2023 · 2 comments
Open

Goblin 0.7.1 fails to parse our PE files #237

blitz opened this issue Oct 15, 2023 · 2 comments
Labels
dependency Issues related to our dependencies stub

Comments

@blitz
Copy link
Member

blitz commented Oct 15, 2023

When upgrading to goblin 0.7.1, the UEFI stub dies, because it fails to parse its own PE file:

vm-test-run-lanzaboote-systemd-boot-loader-config> machine # [ WARN]: linux-bootloader/src/pe_section.rs@028: Parsing PE failed Malformed entity: Unable to extract certificate. Probably cert_size:1599360838 is malformed!
vm-test-run-lanzaboote-systemd-boot-loader-config> machine # [PANIC]: panicked at 'Failed to extract configuration from binary. Did you run lzbt?: Error { status: INVALID_PARAMETER, data: () }', stub/src/thin.rs:121:10

Looks like it's introduced with: m4b/goblin#354

Blocks #196.

/cc @RaitoBezarius

@RaitoBezarius
Copy link
Member

RaitoBezarius commented Oct 15, 2023 via email

blitz added a commit that referenced this issue Oct 15, 2023
goblin 0.7.1 introduces certification support for PE files. This seems to be broken, because we get:

Parsing PE failed Malformed entity: Unable to extract certificate. Probably cert_size:1599360838 is malformed!

from goblin when trying to parse our PE file in memory.

See #237 for context.
blitz added a commit that referenced this issue Oct 16, 2023
blitz added a commit that referenced this issue Oct 16, 2023
... because of #237. Now renovate should ignore this.
@blitz blitz mentioned this issue Oct 16, 2023
4 tasks
@blitz blitz added stub dependency Issues related to our dependencies labels Oct 20, 2023
@nikstur
Copy link
Member

nikstur commented Jun 8, 2024

Seems to still fail with 0.8.2:

panicked at stub/src/thin.rs:96:10:\r\nFailed to extract configuration from binary. Did you run lzbt?: Error '
Failed to extract configuration from binary. Did you run lzbt?: Error { status: INVALID_PARAMETER, data: () }

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dependency Issues related to our dependencies stub
Projects
None yet
Development

No branches or pull requests

3 participants