[Bug 254171] 13.0-RC1: pf: vnet: jail leaves a unnecessary swi1 thread in intr process

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 9 20:48:16 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254171

            Bug ID: 254171
           Summary: 13.0-RC1: pf: vnet: jail leaves a unnecessary swi1
                    thread in intr process
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: rashey at superbox.pl

To reproduce the issue you must load pf module and create the jail with vnet
option.

# cat /etc/jail.conf
path = "/usr/jail/${name}";
exec.clean;
exec.prestart   = "ifconfig epair${epairid} create";
exec.prestart  += "ifconfig epair${epairid}a inet6 ifdisabled up";
exec.prestart  += "ifconfig bridge0 addm epair${epairid}a";
exec.created    = "cpuset -l 1 -j ${name}";
exec.start      = "ifconfig epair${epairid}b ether 02:ef:a4:c1:60:0${epairid}";
exec.start     += "ifconfig epair${epairid}b inet ${ipaddress} netmask
${netmask}";
exec.start     += "route add default ${gateway}";
exec.start     += "sh /etc/rc";
exec.stop       = "sh /etc/rc.shutdown jail";
exec.poststop   = "ifconfig epair${epairid}a destroy";
host.hostname   = "${name}";
mount.devfs;
vnet;
vnet.interface  = "epair${epairid}b";
test1 {
    $epairid    = 1;
    $ipaddress  = 192.168.0.101;
    $netmask    = 255.255.255.0;
    $gateway    = 192.168.0.1;
}
test2 {
    $epairid    = 2;
    $ipaddress  = 192.168.0.102;
    $netmask    = 255.255.255.0;
    $gateway    = 192.168.0.1;
}

# ifconfig bridge0 create
# kldload pf
# service jail onestart
Starting jails: test1 test2.
# procstat -t 12 | egrep 'PID|swi1'
  PID    TID COMM                TDNAME              CPU  PRI STATE   WCHAN
   12 100031 intr                swi1: netisr 0       -1   28 wait    -
   12 100134 intr                swi1: pf send        -1   28 wait    -
   12 100138 intr                swi1: pf send        -1   28 wait    -
   12 100147 intr                swi1: pf send        -1   28 wait    -
# service jail onerestart
Stopping jails: test1 test2.
Starting jails: test1 test2.
# service jail onerestart
Stopping jails: test1 test2.
Starting jails: test1 test2.
# service jail onestop
Stopping jails: test1 test2.
# procstat -t 12 | egrep 'PID|swi1'
  PID    TID COMM                TDNAME              CPU  PRI STATE   WCHAN
   12 100031 intr                swi1: netisr 0       -1   28 wait    -
   12 100134 intr                swi1: pf send        -1   28 wait    -
   12 100138 intr                swi1:                -1   47 wait    -
   12 100147 intr                swi1:                -1   47 wait    -
   12 100157 intr                swi1:                -1   47 wait    -
   12 100158 intr                swi1:                -1   47 wait    -
   12 100159 intr                swi1:                -1   47 wait    -
   12 100160 intr                swi1:                -1   47 wait    -

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


More information about the freebsd-bugs mailing list