freebsd-dev/sys/netpfil
Kristof Provost 2f8fb3a868 pf: Fix possible shutdown race
Prevent possible races in the pf_unload() / pf_purge_thread() shutdown
code. Lock the pf_purge_thread() with the new pf_end_lock to prevent
these races.

Use a shared/exclusive lock, as we need to also acquire another sx lock
(VNET_LIST_RLOCK). It's fine for both pf_purge_thread() and pf_unload()
to sleep,

Pointed out by: eri, glebius, jhb
Differential Revision:	https://reviews.freebsd.org/D10026
2017-03-22 21:18:18 +00:00
..
ipfw Change several constants used by the PIE algorithm from unsigned to signed. 2017-03-18 23:00:13 +00:00
pf pf: Fix possible shutdown race 2017-03-22 21:18:18 +00:00