git: 4f2925105edb - stable/13 - net: bandaid for plugging a fw_com leak in fwip_detach()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 May 2026 15:16:40 UTC
The branch stable/13 has been updated by avatar:
URL: https://cgit.FreeBSD.org/src/commit/?id=4f2925105edbee4e129239d5e9887be9c5f8ad53
commit 4f2925105edbee4e129239d5e9887be9c5f8ad53
Author: Tai-hwa Liang <avatar@FreeBSD.org>
AuthorDate: 2024-02-15 01:00:49 +0000
Commit: Tai-hwa Liang <avatar@FreeBSD.org>
CommitDate: 2026-05-19 14:56:48 +0000
net: bandaid for plugging a fw_com leak in fwip_detach()
Adding a temporary workaround for plugging a fw_com upon if_fwip unloading.
Steps to reproduce(needs two hosts connected with firewire):
while true; do
ifconfig fwip0 10.0.0.5 up
fwcontrol -r
ping -c 10.0.0.3
kldunload if_fwip
done
There's a chance that the unloading of if_fwip.ko triggers following warning:
Warning: memory type fw_com leaked memory on destroy (1 allocations, 64 bytes leaked).
commit d79b6b8ec267e7eef6e07cf4245159705e24acd5 (origin/main, origin/HEAD)
(cherry picked from commit 25a5bb7318052322190a2880e0e7ef18e06d54bd)
---
sys/net/if_fwsubr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c
index 61c52a9df3c2..cd796b63f857 100644
--- a/sys/net/if_fwsubr.c
+++ b/sys/net/if_fwsubr.c
@@ -801,6 +801,7 @@ firewire_ifdetach(struct ifnet *ifp)
{
bpfdetach(ifp);
if_detach(ifp);
+ NET_EPOCH_DRAIN_CALLBACKS();
}
void