Page MenuHomeFreeBSD

pf: Make sure that pfi_update_status() always zeros counters
ClosedPublic

Authored by markj on Jun 29 2022, 3:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 23, 11:59 PM
Unknown Object (File)
Feb 10 2025, 3:04 AM
Unknown Object (File)
Feb 4 2025, 10:30 PM
Unknown Object (File)
Feb 4 2025, 4:29 AM
Unknown Object (File)
Feb 2 2025, 9:38 PM
Unknown Object (File)
Jan 27 2025, 4:51 PM
Unknown Object (File)
Dec 27 2024, 2:27 AM
Unknown Object (File)
Dec 11 2024, 2:20 PM

Details

Summary

pfi_update_status() can return early if the status interface doesn't
exist. But in this case pf_getstatus() was copying uninitialized stack
memory into the output nvlist.

Reported by: Jenkins (KMSAN job)

Diff Detail

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