Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78563 - [systemd] systemd-boot PE files have incorrect LMA alignment

Attached to Project: Arch Linux
Opened by Yishen Miao (mys_721tx) - Sunday, 21 May 2023, 00:12 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 30 May 2023, 04:38 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

linuxx64.efi.stub and systemd-bootx64.efi in systemd 253.4-1 have incorrect LMA alignment. This has been fixed by upstream.

Additional info:
* systemd 253.4-1
* https://github.com/systemd/systemd/issues/27717

Steps to reproduce:

```ShellSession
# objdump -p /usr/lib/systemd/boot/efi/linuxx64.efi.stub | grep SectionAlign
SectionAlignment 00000200

# objdump -h /usr/lib/systemd/boot/efi/linuxx64.efi.stub

/usr/lib/systemd/boot/efi/linuxx64.efi.stub: file format pei-x86-64

Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000097f0 0000000000003000 0000000000003000 00000400 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .reloc 0000000c 000000000000d000 000000000000d000 00009c00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00002028 000000000000e000 000000000000e000 00009e00 2**4
CONTENTS, ALLOC, LOAD, DATA
3 .dynamic 00000100 0000000000011000 0000000000011000 0000c000 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .rela 000004f8 0000000000012000 0000000000012000 0000c200 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .dynsym 00000018 0000000000013000 0000000000013000 0000c800 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
6 .sbat 000000ea 0000000000015000 0000000000015000 0000ca00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .sdmagic 00000030 0000000000015100 0000000000015100 0000cc00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA

# objdump -p /usr/lib/systemd/boot/efi/systemd-bootx64.efi | grep SectionAlign
SectionAlignment 00000200

# objdump -h /usr/lib/systemd/boot/efi/systemd-bootx64.efi

/usr/lib/systemd/boot/efi/systemd-bootx64.efi: file format pei-x86-64

Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00011670 0000000000004000 0000000000004000 00000400 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .reloc 0000000c 0000000000016000 0000000000016000 00011c00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00003941 0000000000017000 0000000000017000 00011e00 2**4
CONTENTS, ALLOC, LOAD, DATA
3 .dynamic 00000100 000000000001b000 000000000001b000 00015800 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .rela 000005b8 000000000001c000 000000000001c000 00015a00 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .dynsym 00000018 000000000001d000 000000000001d000 00016000 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
6 .sdmagic 00000030 000000000001f000 000000000001f000 00016200 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .sbat 000000ea 000000000001f380 000000000001f380 00016400 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
8 .osrel 00000049 000000000001f480 000000000001f480 00016600 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
```
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 30 May 2023, 04:38 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Will wait for next release as per comments.
Comment by Toolybird (Toolybird) - Sunday, 21 May 2023, 00:34 GMT
> Already fixed in git

By which commit?
Comment by Toolybird (Toolybird) - Sunday, 21 May 2023, 00:52 GMT
Related  FS#77874 
Comment by Yishen Miao (mys_721tx) - Sunday, 21 May 2023, 00:53 GMT
I am checking with medhefgo upstream. I will report back.
Comment by Yishen Miao (mys_721tx) - Sunday, 21 May 2023, 07:31 GMT
It's fixed in https://github.com/systemd/systemd/commit/2afeaf1675a6a68636be493a9461e72ce067db19. Although we might be better off wait for the next release.
Comment by Toolybird (Toolybird) - Sunday, 21 May 2023, 07:36 GMT
> Although we might be better off wait for the next release

Agreed. "this is not backporting material" is a strong indication.

Loading...