[ipxe-devel] [ipxe/ipxe] [infiniband] fix a memory leak in ib_refill_recv (#87)

Ignat Korchagin notifications at github.com
Tue Jan 15 17:42:23 UTC 2019


Thanks for the detailed explanation.

Just more context:
- the memory leak is triggered by my server UEFI firmware: when loading the option ROM it finds that the ROM (iPXE in this case) implements an SNP interface, so it opens the interface and starts "polling" it in a tight loop. I don't know why it does that but suppose for similar reasons as in https://github.com/ipxe/ipxe/blob/e226fecd1b602ece7f4f208042f3e87ca540b297/src/interface/efi/efi_snp.c#L1767-L1776 (I actually patched it the same way by opening the SNP interface in DRIVER EXCLUSIVE mode as well)
- since the interface during this polling is not configured - obviously it gets nothing. However, I'm sure the memory is not released, so maybe the `ib_complete_recv()` never gets called

Closing this for now - I'll investigate further if I have time, but if you have some ideas/more pointers, please let me know.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/87#issuecomment-454483405
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20190115/a8458836/attachment.htm>


More information about the ipxe-devel mailing list