[ipxe-devel] [ipxe/ipxe] [efi_pci] Elevate TPL around pci_probe (#70)
notifications at github.com
Wed Mar 14 20:27:39 UTC 2018
This resolves a case where my system would hang on the UEFI call to StartImage.
When a PCI NIC gets probed successfully, it calls register_netdev() which in turn uses the least significant bits of the MAC to seed the random number generator. This calls into random() which uses currticks() for the initial seed. On EFI builds, this restores the TPL level to TPL_APPLICATION to allow tick events to fire, and then raises it back to TPL_CALLBACK. Not matching calls to RaiseTPL with calls to RestoreTPL causes undefined behavior, in this case a system hang. Adding the matching calls around pci_probe resolves this issue.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* [efi_pci] Elevate TPL around pci_probe
-- File Changes --
M src/interface/efi/efi_pci.c (3)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ipxe-devel