[PATCH v2 2/2] efi_loader: efi_net: let efi_net_set_dp properly update the device path

Tom Rini trini at konsulko.com
Fri Dec 6 19:44:38 CET 2024


On Fri, Dec 06, 2024 at 02:18:35PM -0300, Adriano Cordova wrote:

> This commit fixes an use after free introduced in Commit e55a4acb54
> (" efi_loader: net: set EFI bootdevice device path to HTTP when loaded
> from wget"). The logic in efi_net_set_dp is reworked so that when the
> function is invoked it not only changes the value of the static variable
> net_dp (this is how the function was implemented in e55a4acb54) but also
> updates the protocol interface of the device path protocol in case efi
> has started.
> 
> Fixes: e55a4acb54e8 ("efi_loader: net: set EFI bootdevice device path to HTTP when loaded from wget")
> Signed-off-by: Adriano Cordova <adriano.cordova at canonical.com>

Reported-by: Tom Rini <trini at konsulko.com>
Tested-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241206/93e1ec3d/attachment.sig>


More information about the U-Boot mailing list