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 <mc...@ipxe.org>

Thanks,

Michael

Reply via email to