summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2025-06-20 14:16:07 +0300
committerArd Biesheuvel <ardb@kernel.org>2025-06-20 14:36:14 +0300
commitf8b53cc9174c5980549f60c972faad82b660b62d (patch)
tree909254a9c01bc48358b7c42a7cb2c09fd63c9de1 /net/lapb/lapb_timer.c
parentc33453d08a56a45c2e72f9f56043610b8f7449c7 (diff)
downloadlinux-f8b53cc9174c5980549f60c972faad82b660b62d.tar.xz
efi: Fix .data section size calculations when .sbat is present
Commit 0f9a1739dd0e ("efi: zboot specific mechanism for embedding SBAT section") neglected to adjust the sizes of the .data section when CONFIG_EFI_SBAT_FILE is set. As the result, the produced PE binary is incorrect and some tools complain about it. E.g. 'sbsign' reports: # sbsign --key my.key --cert my.crt arch/arm64/boot/vmlinuz.efi warning: file-aligned section .data extends beyond end of file warning: checksum areas are greater than image size. Invalid section table? Note, '__data_size' is also used in the PE optional header and it is not entirely clear whether .sbat needs to be accounted as part of SizeOfInitializedData or not. As the header seems to be unused by the real world firmware, keeping the field equal to __data_size. Fixes: 0f9a1739dd0e ("efi: zboot specific mechanism for embedding SBAT section") Reported-by: Heinrich Schuchardt <heinrich.schuchardt@gmx.de> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions