Page MenuHomeFreeBSD

pf: Fix memory leak on vnet shutdown or unload
ClosedPublic

Authored by kp on Mar 17 2017, 5:37 AM.
Tags
None
Referenced Files
F130561984: D10040.id26346.diff
Tue, Sep 30, 8:21 AM
F130530334: D10040.diff
Tue, Sep 30, 2:03 AM
F130512078: D10040.diff
Mon, Sep 29, 10:53 PM
Unknown Object (File)
Sat, Sep 27, 3:07 PM
Unknown Object (File)
Sat, Sep 27, 2:32 PM
Unknown Object (File)
Thu, Sep 18, 2:32 AM
Unknown Object (File)
Sat, Sep 6, 7:57 PM
Unknown Object (File)
Aug 14 2025, 8:17 AM
Subscribers

Details

Summary

Rules are unlinked in shutdown_pf(), so we must call
pf_unload_vnet_purge(), which frees unlinked rules, after that, not
before.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 17 2017, 10:02 PM
bz added a subscriber: bz.

It is unclear to me why I had chosen the different order in r302156 but on a quick glance this looks OK.

This revision was automatically updated to reflect the committed changes.