[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-pf
Subject:    [Bug 230619] pf: tables use non SMP-friendly counters
From:       bugzilla-noreply () freebsd ! org
Date:       2019-03-29 14:35:50
Message-ID: bug-230619-16861-AwhGnQatjc () https ! bugs ! freebsd ! org/bugzilla/
[Download RAW message or body]

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230619

--- Comment #10 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kp
Date: Fri Mar 29 14:34:52 UTC 2019
New revision: 345692
URL: https://svnweb.freebsd.org/changeset/base/345692

Log:
  MFC r345177:

  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>

Changes:
_U  stable/12/
  stable/12/sys/net/pfvar.h
  stable/12/sys/netpfil/pf/pf_table.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-pf@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic