Bug 278100 - ena (Elastic Network Adapter) driver memory leak on detach
Summary: ena (Elastic Network Adapter) driver memory leak on detach
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: Osama Abboud
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2024-04-01 14:44 UTC by Mike Belanger
Modified: 2024-10-31 18:01 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Belanger 2024-04-01 14:44:43 UTC
Missing call to 
ifmedia_removeall(&adapter->media);
in ena_detach.

ifmedia_add allocates memory.
entry = malloc(sizeof(*entry), M_IFADDR, M_NOWAIT);
ifmedia_removeall will free the entries.
Comment 1 Arthur Kiyanovski 2024-04-03 13:42:26 UTC
Thanks for the report, will look into this
Comment 3 Osama Abboud 2024-10-28 09:52:19 UTC
(In reply to Zhenlei Huang from comment #2)
Can it be resolved now that its fixed?
Comment 4 Mark Johnston freebsd_committer freebsd_triage 2024-10-28 20:06:39 UTC
(In reply to Osama Abboud from comment #3)
Typically we mark bugs closed once they're merged to stable branches (if applicable).  In this case, there's an MFC timeout on the commit, so we should wait until that's done.