[PATCH 1/1] efi_loader: stop network in EXIT_BOOT_SERVICES

Michael Brown mcb30 at ipxe.org
Sat Apr 5 09:51:25 CEST 2025


On 05/04/2025 07:58, Heinrich Schuchardt wrote:
> It has been reported that memory corruption can occurred because network
> packages where received after EXIT_BOOT_SERVICES. See the thread
> starting at [1].
> 
> We try to remove all drivers when EXIT_BOOT_SERVICES is called. But
> 
> * Some network drivers don't call their own stop method when removed.
> * Some network drivers don't have a remove method.
> * Some devices have CONFIG_DM_DEVICE_REMOVE=n.
> 
> Let's call eth_halt() in EXIT_BOOT_SERVICES explicitly.

I don't have the affected hardware to test on, but the patch looks good 
to me.  Thank you for fixing this!

Reviewed-by: Michael Brown <mcb30 at ipxe.org>

Thanks,

Michael



More information about the U-Boot mailing list