public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/5] efi_selftest: manageprotocols fixes and enhancements
@ 2026-02-19 18:43 Vincent Stehlé
  2026-02-19 18:43 ` [PATCH 1/5] efi_selftest: fix buffer overflow Vincent Stehlé
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Vincent Stehlé @ 2026-02-19 18:43 UTC (permalink / raw)
  To: u-boot; +Cc: Vincent Stehlé, Heinrich Schuchardt, Ilias Apalodimas,
	Tom Rini

Hi,

This patch series contains fixes and enhancements for the UEFI Protocols
management test. It is broken down in small steps to ease review; feel free
to squash and/or cherry-pick.

It is possible to verify with valgrind that the first couple of fixes in
this series do indeed remove invalid writes, with the following steps:

1. Modify the efi_allocate_pool() and efi_free_pool() functions to call
   malloc() and free() respectively.

2. Build U-Boot with sandbox_defconfig and CONFIG_VALGRIND=y.
3. Run the following command:

  $ valgrind --suppressions=scripts/u-boot.supp \
      ./u-boot -T -c "setenv efi_selftest manage protocols; \
                      bootefi selftest"

Best regards,
Vincent.


Vincent Stehlé (5):
  efi_selftest: fix buffer overflow
  efi_selftest: fix buffer overflow and memory leak
  efi_selftest: remove unnecessary initializations
  efi_selftest: fix buffer size and count computations
  efi_selftest: cosmetic: fix spelling in comments

 .../efi_selftest_manageprotocols.c            | 28 ++++++++++---------
 1 file changed, 15 insertions(+), 13 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-03-10 17:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-19 18:43 [PATCH 0/5] efi_selftest: manageprotocols fixes and enhancements Vincent Stehlé
2026-02-19 18:43 ` [PATCH 1/5] efi_selftest: fix buffer overflow Vincent Stehlé
2026-02-20  7:37   ` Ilias Apalodimas
2026-02-24 15:45   ` Heinrich Schuchardt
2026-03-10 17:16     ` Vincent Stehlé
2026-02-19 18:43 ` [PATCH 2/5] efi_selftest: fix buffer overflow and memory leak Vincent Stehlé
2026-02-20  9:10   ` Ilias Apalodimas
2026-02-19 18:43 ` [PATCH 3/5] efi_selftest: remove unnecessary initializations Vincent Stehlé
2026-02-20  7:43   ` Ilias Apalodimas
2026-02-19 18:43 ` [PATCH 4/5] efi_selftest: fix buffer size and count computations Vincent Stehlé
2026-02-20  9:13   ` Ilias Apalodimas
2026-02-19 18:44 ` [PATCH 5/5] efi_selftest: cosmetic: fix spelling in comments Vincent Stehlé
2026-02-20  7:42   ` Ilias Apalodimas
2026-02-24 15:55   ` Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox