Page MenuHomeFreeBSD

pf: explicitly NULL state key pointers
ClosedPublic

Authored by kp on Mar 28 2025, 2:48 PM.
Tags
None
Referenced Files
F167276333: D49553.diff
Thu, Aug 20, 2:25 PM
Unknown Object (File)
Thu, Aug 13, 2:06 PM
Unknown Object (File)
Wed, Aug 12, 1:16 AM
Unknown Object (File)
Mon, Aug 10, 4:49 PM
Unknown Object (File)
Mon, Aug 10, 10:29 AM
Unknown Object (File)
Mon, Aug 10, 10:18 AM
Unknown Object (File)
Mon, Aug 10, 1:18 AM
Unknown Object (File)
Mon, Aug 10, 1:13 AM

Details

Summary

After the pf_state_insert() call we may not use these pointers again.
Explicitly NULL them to ensure we don't.
Also NULL them out if we free the keys directly.

MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63177
Build 60061: arc lint + arc unit