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)
Oct 4 2024, 6:58 AM
Unknown Object (File)
Sep 25 2024, 12:32 AM
Unknown Object (File)
Sep 24 2024, 10:28 PM
Unknown Object (File)
Sep 12 2024, 7:36 AM
Unknown Object (File)
Sep 8 2024, 10:54 AM
Unknown Object (File)
Sep 7 2024, 12:24 PM
Unknown Object (File)
Sep 5 2024, 2:49 AM
Unknown Object (File)
Sep 2 2024, 2:26 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