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
Unknown Object (File)
Mon, Apr 6, 12:28 PM
Unknown Object (File)
Mon, Apr 6, 3:33 AM
Unknown Object (File)
Sun, Apr 5, 1:46 PM
Unknown Object (File)
Tue, Mar 31, 10:03 AM
Unknown Object (File)
Mon, Mar 30, 8:40 PM
Unknown Object (File)
Wed, Mar 25, 3:50 PM
Unknown Object (File)
Sat, Mar 21, 5:55 PM
Unknown Object (File)
Sat, Mar 21, 7:15 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.