coreboot/src/drivers/efi
Sergii Dmytruk 3794f9f94a drivers/efi/capsules.c: fix recording capsule size
As mentioned in comments on CB:83422, size of the current data
block (which is also the last block of a capsule) was incorrectly used
in place of the capsule size:
 - when publishing a capsule in CBMEM (this worked in practice because
   CapsuleApp.efi allocates a continuous physical memory)
 - when aligning target address (which could move output pointer past
   previously allocated buffer by up to 7 bytes per capsule block)

Change-Id: I97a528e2611fcd711c555d0f01e9aadcd2031217
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84542
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-03-01 23:29:54 +00:00
..
capsules.c drivers/efi/capsules.c: fix recording capsule size 2025-03-01 23:29:54 +00:00
capsules.h drivers/efi/uefi_capsules.c: coalesce and store UEFI capsules 2024-08-30 15:48:25 +00:00
efivars.c tree: Drop unused <stdlib.h> 2024-04-11 19:24:44 +00:00
efivars.h
info.c drivers/efi: add optional ESRT-friendly coreboot table tag 2024-08-19 14:30:20 +00:00
Kconfig drivers/efi/uefi_capsules.c: coalesce and store UEFI capsules 2024-08-30 15:48:25 +00:00
Makefile.mk drivers/efi/uefi_capsules.c: coalesce and store UEFI capsules 2024-08-30 15:48:25 +00:00
option.c tree: Drop unused <stdlib.h> 2024-04-11 19:24:44 +00:00