Skip to content
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

(RHEL-30372) efi: check if all sections of our EFI binaries are properly aligned #248

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mrc0mmand
Copy link
Member

@mrc0mmand mrc0mmand commented Mar 25, 2024

(cherry picked from commit 7ff3b88)

Related: TBD

Copy link

github-actions bot commented Mar 25, 2024

Commit validation

Tracker - RHEL-30372

The following commits meet all requirements

commit upstream
4cfc409 - efi: check if all sections of our EFI binaries are properly aligned systemd/systemd@7ff3b88
bab9a56 - ci: install pefile systemd/systemd@1f6da5d
1abe8dc - efi: skip check-alignment-* tests if pefile is not installed systemd/systemd@f0896ca

Tracker validation

Success

🟢 Tracker RHEL-30372 has set desired product: CentOS Stream 9
🟢 Tracker RHEL-30372 has set desired component: systemd
🟢 Tracker RHEL-30372 has been approved
🟢 Tracker RHEL-30372 has set severity


Pull Request validation

Failed

🔴 Failed or pending checks - rpm-build:centos-stream-9-x86_64[failure],build (GCC, openssl)[failure],build (GCC, auto)[failure],build (GCC_ASAN_UBSAN, auto)[failure],build (CLANG_RELEASE, auto)[failure],build (CLANG, gcrypt)[failure],build (CLANG, auto)[failure],build (CLANG_ASAN_UBSAN, auto)[failure],build (CLANG_ASAN_UBSAN_NO_DEPS, auto)[failure] Failed or pending statuses - CentOS CI (CentOS Stream 9)[failure],CentOS CI (CentOS Stream 9 + sanitizers)[failure]

Success

🟢 Review - Reviewed by a member
🟢 Approval - Changes were approved

@jamacku jamacku added this to the RHEL-9.5.0 milestone Mar 25, 2024
Copy link
Member

@jamacku jamacku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrc0mmand You can now reference RHEL-30372

@mrc0mmand mrc0mmand marked this pull request as ready for review April 18, 2024 11:28
@mrc0mmand
Copy link
Member Author

mrc0mmand commented Apr 18, 2024

Updated the references and marked for review, even though it'll keep failing until the undrelying objcopy issue is fixed (should be in 9.5, although that won't help us in GH Actions CI which run Ubuntu, so this'll get interesting).

Also, it's very possible we might ditch the gnu-efi+objcopy approach completely in the meanwhile due to https://issues.redhat.com/browse/RHEL-30400.

@github-actions github-actions bot removed the tracker/missing Formerly needs-bz label Apr 18, 2024
@github-actions github-actions bot changed the title efi: check if all sections of our EFI binaries are properly aligned (RHEL-30372) efi: check if all sections of our EFI binaries are properly aligned Apr 18, 2024
mrc0mmand and others added 3 commits June 11, 2024 15:35
(cherry picked from commit 1f6da5d)

Related: RHEL-30372
Otherwise, when building with ukify disabled, no one else requires pefile, and
if it is not installed, those tests fail:

```
================================== 12/1212 ===================================
test:         systemd:efi / check-alignment-systemd-bootx64.efi
start time:   14:21:54
duration:     0.08s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/systemd-bootx64.efi
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================

================================== 13/1212 ===================================
test:         systemd:efi / check-alignment-linuxx64.efi.stub
start time:   14:21:54
duration:     0.08s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/linuxx64.efi.stub
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================

================================== 14/1212 ===================================
test:         systemd:efi / check-alignment-addonx64.efi.stub
start time:   14:21:54
duration:     0.07s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/addonx64.efi.stub
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================
```

Follow-up for 7ff3b88

(cherry picked from commit f0896ca)

Related: RHEL-30372
@github-actions github-actions bot removed the pr/needs-review Formerly needs-review label Jun 11, 2024
@github-actions github-actions bot added tracker/missing Formerly needs-bz and removed tracker/missing Formerly needs-bz labels Jun 30, 2024
@github-actions github-actions bot added tracker/missing Formerly needs-bz and removed tracker/missing Formerly needs-bz labels Jul 28, 2024
@jamacku jamacku modified the milestones: RHEL-9.5.0, RHEL-9.6.0 Aug 29, 2024
@github-actions github-actions bot added tracker/missing Formerly needs-bz and removed tracker/missing Formerly needs-bz labels Sep 19, 2024
@github-actions github-actions bot added tracker/missing Formerly needs-bz and removed tracker/missing Formerly needs-bz labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dont-merge pr/needs-ci Formerly needs-ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants