Skip to content

efi_loader: Address some issues found by Smatch

Andrew Goodbody u-boot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20250701-efiloader_fix-63c3609c6ed8

Versions newest first

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Address review comments on 2/3 to return EFI_UNSUPPORTED and eliminate
the use of protocol_interface
- Collect RB tags for unchanged patches
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3efi_loader: Prevent dereferencing NULL pointerlib/efi_loader/efi_file.c+1 -10 replies
2/3efi_loader: Prevent dereference of uninitialised variablelib/efi_loader/efi_http.c+4 -52 replies
3/3efi_loader: Prevent free of uninitialised pointerlib/efi_loader/efi_net.c+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchIlias ApalodimasHeinrich Schuchardt
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] efi_loader: Address some issues found by Smatch

Smatch reported that there were some unitialised variables and dereferencing of NULL pointers. This series addresses these issues.

---
Changes in v2:
- Address review comments on 2/3 to return EFI_UNSUPPORTED and eliminate
the use of protocol_interface
- Collect RB tags for unchanged patches
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Andrew Goodbody (3):
efi_loader: Prevent dereferencing NULL pointer
efi_loader: Prevent dereference of uninitialised variable
efi_loader: Prevent free of uninitialised pointer

 lib/efi_loader/efi_file.c | 2 +-
 lib/efi_loader/efi_http.c | 9 ++++-----
 lib/efi_loader/efi_net.c  | 2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)

---
base-commit: 7027b445cc0bfb86204ecb1f1fe596f5895048d9
change-id: 20250701-efiloader_fix-63c3609c6ed8

Best regards,

Signature · 1 line
Andrew Goodbody <[email protected]>