From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 27 15:20:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CC24C07 for ; Thu, 27 Mar 2014 15:20:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C3602CFA for ; Thu, 27 Mar 2014 15:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2RFK0tO021647 for ; Thu, 27 Mar 2014 15:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2RFK0fY021644; Thu, 27 Mar 2014 15:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 27 Mar 2014 15:20:00 GMT Resent-Message-Id: <201403271520.s2RFK0fY021644@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Philipp Schmid Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F26FC02 for ; Thu, 27 Mar 2014 15:19:57 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B625CF6 for ; Thu, 27 Mar 2014 15:19:57 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2RFJulx026937 for ; Thu, 27 Mar 2014 15:19:56 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2RFJuCf026926; Thu, 27 Mar 2014 15:19:56 GMT (envelope-from nobody) Message-Id: <201403271519.s2RFJuCf026926@cgiserv.freebsd.org> Date: Thu, 27 Mar 2014 15:19:56 GMT From: Philipp Schmid To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/188018: Running pfctl -sr -v in Jail with VIMAGE crashes host X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 15:20:01 -0000 >Number: 188018 >Category: misc >Synopsis: Running pfctl -sr -v in Jail with VIMAGE crashes host >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 27 15:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Philipp Schmid >Release: 10.0 >Organization: OpenResearch Software Development OG >Environment: FreeBSD rna 10.0-RELEASE FreeBSD 10.0-RELEASE #4: Sat Mar 8 04:54:46 CET 2014 root@rna:/usr/obj/usr/src/sys/RNA amd64 >Description: I have a jail running with VIMAGE enabled. The host is using PF for packet filtering. The script: /etc/periodic/security/520.pfdenied gets run daily at 4:00 am CET every day per default. 520.pfdenied runs the command: pfctl -sr -v If pfctl -sr -v is executed in the jail by the script or by hand, the host reboots/crashes immediately. >How-To-Repeat: Setup FreeBSD 10. Compile a kernel with the following config: root@host:~ # diff kernels/RNA /usr/src/sys/amd64/conf/GENERIC 22c22 < ident RNA --- > ident GENERIC 345,356d344 < < # IPSec < options IPSEC #IP security < device crypto < options IPSEC_FILTERTUNNEL < device enc < < # Virtual networking for jail < options VIMAGE < device epair < device if_bridge Enable PF on the host. Create a Jail. Run: pfctl -sr -v Crash >Fix: >Release-Note: >Audit-Trail: >Unformatted: