[Bug 205873] pfctl -sr from a jail with vnet trigger Fatal trap 12 during pfioctl

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 4 13:28:37 UTC 2016


            Bug ID: 205873
           Summary: pfctl -sr from a jail with vnet trigger Fatal trap 12
                    during pfioctl
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: sheda at fsfe.org
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 165051
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=165051&action=edit
Backtrace of the fatal trap triggered by the jailed pfctl -sr

Running "pfctl -sr" from within a jail having its own vnet trigger a "Fatal
trap 12: page fault while in kernel mode" (backtrace in the screenshot

Surprisingly, the "dump" command successfully generate a core dump that can be
read with kgdb but "bt" don't show any thread containing the pfioctl call.

Anyway, the jail is configured as follow:

$ head -n 17 /etc/jail.conf
devfs_ruleset = 5;
exec.poststop = "/jail/etc/poststop $name";
exec.prestart = "/jail/etc/prestart $name";
exec.start    = "sh /etc/rc";
host.hostname = "$name.fb11.lab.local";
path          = /jail/$name;

left {
        vnet           = new;
        vnet.interface = epair0a;
$ grep -e pf -e jail /etc/rc.conf
# Set the jail list to "" to create all the jails found in jail.conf(5)
$ cat /etc/pf.conf 
pass from any to any
$ pfctl -sr
pass all flags S/SA keep state
$ cat /etc/devfs.rules 
add include $devfsrules_jail
add path 'pf' unhide
$ ll -i /dev/pf
88 crw-------  1 root  wheel  0x58 Jan  4 14:30 /dev/pf
$ sudo jexec left ls -li /dev/pf
88 crw-------  1 root  wheel  0x58 Jan  4 13:30 /dev/pf

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list