Date: Sun, 14 Dec 2014 14:54:20 +0000 From: "rodrigc (Craig Rodrigues)" <phabric-noreply@FreeBSD.org> To: freebsd-pf@freebsd.org Subject: [Differential] [Request, 100 lines] D1315: VIMAGE PF fixes #4 Message-ID: <differential-rev-PHID-DREV-k72fyxmql5uyge3yepnq-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-k72fyxmql5uyge3yepnq-req>