[Differential] [Request, 100 lines] D1315: VIMAGE PF fixes #4
rodrigc (Craig Rodrigues)
phabric-noreply at FreeBSD.org
Sun Dec 14 14:54:21 UTC 2014
rodrigc created this revision.
rodrigc added reviewers: bz, glebius, trociny, network.
rodrigc added subscribers: freebsd-net, freebsd-pf, freebsd-virtualization.
REVISION SUMMARY
Instead of creating a purge thread for every vnet, create
a single purge thread and clean up all vnets from this thread.
TEST PLAN
(1) Boot a kernel with VIMAGE enabled
(2) Create a vnet jail
jail -c persist name=testjail001 vnet path=/ host.hostname=testjail001 allow.raw_sockets allow.socket_af
(3) Start pf inside the jail
service start pf
(4) Delete the vnet jail
jail -r testjail001
Without this patch, the kernel would panic in step (4). With the patch,
the kernel does not panic
REVISION DETAIL
https://reviews.freebsd.org/D1315
AFFECTED FILES
sys/net/pfvar.h
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf_ioctl.c
To: rodrigc, bz, glebius, trociny, np, melifaro, hrs, wollman, bryanv, rpaulo, adrian, gnn, hiren, rwatson
Cc: freebsd-virtualization, freebsd-pf, freebsd-net
More information about the freebsd-virtualization
mailing list