Bug 257218 - pfi_ifnet leak on interface removal
Summary: pfi_ifnet leak on interface removal
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-pf (Nobody)
Depends on:
Reported: 2021-07-16 15:35 UTC by Nick Reilly
Modified: 2021-07-17 19:08 UTC (History)
0 users

See Also:

Suggested diff (1.12 KB, patch)
2021-07-16 15:35 UTC, Nick Reilly
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Reilly 2021-07-16 15:35:18 UTC
Created attachment 226498 [details]
Suggested diff

The detach of the interface and group were leaving pfi_ifnet memory behind. Doing an unref on the kif frees it up if this is the last reference.

On interface detach, the group deletion was notified first and then a change notification was sent. This would recreate the group in the kif layer. Reorder the change to before the delete.