[Bug 230619] pf: tables use non SMP-friendly counters
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 14 16:02:38 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230619
Bug ID: 230619
Summary: pf: tables use non SMP-friendly counters
Product: Base System
Version: 11.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: vegeta at tuxpowered.net
Created attachment 196197
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196197&action=edit
Use counter(9) in pf tables.
Counters of pf tables are updated out of rule lock. That means state updates
might overwrite eachother. Furthermore there is allocation and freing counters
happening in lockless manner too.
Proposed patch modifies table counters behaviour. counter(9) facility is used
and table element counters are always allocated so that race conditions are
impossible now.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list