/[base]
ViewVC logotype

Revision 345177


Jump to revision: Previous Next
Author: kp
Date: Fri Mar 15 11:08:44 2019 UTC (5 years, 3 months ago)
Changed paths: 2
Log Message:
pf :Use counter(9) in pf tables.

The counters of pf tables are updated outside the rule lock. That means state
updates might overwrite each other. Furthermore allocation and
freeing of counters happens outside the lock as well.

Use counter(9) for the counters, and always allocate the counter table
element, so that the race condition cannot happen any more.

PR:		230619
Submitted by:	Kajetan Staszkiewicz <vegeta@tuxpowered.net>
Reviewed by:	glebius
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D19558


Changed paths

Path Details
Directoryhead/sys/net/pfvar.h modified , text changed
Directoryhead/sys/netpfil/pf/pf_table.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27