Page MenuHomeFreeBSD

pf: Free pf_rule_items when state is not created
ClosedPublic

Authored by vegeta_tuxpowered.net on Oct 12 2023, 4:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 4:36 PM
Unknown Object (File)
Dec 26 2023, 7:49 AM
Unknown Object (File)
Dec 20 2023, 7:20 AM
Unknown Object (File)
Dec 10 2023, 8:02 PM
Unknown Object (File)
Nov 30 2023, 1:36 AM
Unknown Object (File)
Nov 26 2023, 5:54 PM

Details

Summary

This addresses the issues of pf_rule_times leaking in case of stateless rules and in case of state creation failures, like hitting the state limit.

Sponsored by: InnoGames GmbH

Test Plan

I've created a rulesets with a match rule and with a pass rule with state limit or with no state. After sending a few packets through I've unloaded pf.ko and that resulted with memory leak being logged. With this patch the leak is not logged anymore.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable