Page MenuHomeFreeBSD

pf: Fix error handling in pf_handle_get_tstats()
ClosedPublic

Authored by markj on Dec 5 2025, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 29, 9:33 AM
Unknown Object (File)
May 27 2026, 6:08 PM
Unknown Object (File)
May 16 2026, 11:43 PM
Unknown Object (File)
May 16 2026, 11:43 PM
Unknown Object (File)
May 16 2026, 11:43 PM
Unknown Object (File)
Apr 20 2026, 10:09 PM
Unknown Object (File)
Apr 15 2026, 12:43 PM
Unknown Object (File)
Apr 15 2026, 12:54 AM

Details

Summary
  • pfr_table_count() can return an error.
  • We must check for failure from mallocarray(M_NOWAIT).

Fixes: 9e8d2962aad3 ("pf: convert DIOCRGETTSTATS to netlink")
Reported by: Kevin Day <kevin@your.org>

Diff Detail

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