<p>Thanks for the detailed explanation.</p>
<p>Just more context:</p>
<ul>
<li>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 <a href="https://github.com/ipxe/ipxe/blob/e226fecd1b602ece7f4f208042f3e87ca540b297/src/interface/efi/efi_snp.c#L1767-L1776">https://github.com/ipxe/ipxe/blob/e226fecd1b602ece7f4f208042f3e87ca540b297/src/interface/efi/efi_snp.c#L1767-L1776</a> (I actually patched it the same way by opening the SNP interface in DRIVER EXCLUSIVE mode as well)</li>
<li>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 <code>ib_complete_recv()</code> never gets called</li>
</ul>
<p>Closing this for now - I'll investigate further if I have time, but if you have some ideas/more pointers, please let me know.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/ipxe/ipxe/pull/87#issuecomment-454483405">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AArTVAjPXJ_6ZG7nq2ugfhZgI5tYV0eZks5vDhL_gaJpZM4ZzfTq">mute the thread</a>.<img src="https://github.com/notifications/beacon/AArTVB-PLtir6sD1ODOltVBTyUeOhuSTks5vDhL_gaJpZM4ZzfTq.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ipxe/ipxe","title":"ipxe/ipxe","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/ipxe/ipxe"}},"updates":{"snippets":[{"icon":"PERSON","message":"@secumod in #87: Thanks for the detailed explanation.\r\n\r\nJust more context:\r\n- 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)\r\n- 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\r\n\r\nClosing this for now - I'll investigate further if I have time, but if you have some ideas/more pointers, please let me know."}],"action":{"name":"View Pull Request","url":"https://github.com/ipxe/ipxe/pull/87#issuecomment-454483405"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ipxe/ipxe/pull/87#issuecomment-454483405",
"url": "https://github.com/ipxe/ipxe/pull/87#issuecomment-454483405",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>