From owner-freebsd-bugs@freebsd.org Tue Mar 9 20:48:16 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3E84956FF46 for ; Tue, 9 Mar 2021 20:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dw6jr16kBz3DPj for ; Tue, 9 Mar 2021 20:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 265AE56FF45; Tue, 9 Mar 2021 20:48:16 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2622256FECB for ; Tue, 9 Mar 2021 20:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dw6jr0Ntgz3DPh for ; Tue, 9 Mar 2021 20:48:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F2B4C22D1A for ; Tue, 9 Mar 2021 20:48:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 129KmFv2033008 for ; Tue, 9 Mar 2021 20:48:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 129KmFA0033007 for bugs@FreeBSD.org; Tue, 9 Mar 2021 20:48:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254171] 13.0-RC1: pf: vnet: jail leaves a unnecessary swi1 thread in intr process Date: Tue, 09 Mar 2021 20:48:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rashey@superbox.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2021 20:48:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254171 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@FreeBSD.org Reporter: rashey@superbox.pl To reproduce the issue you must load pf module and create the jail with vnet option. # cat /etc/jail.conf path =3D "/usr/jail/${name}"; exec.clean; exec.prestart =3D "ifconfig epair${epairid} create"; exec.prestart +=3D "ifconfig epair${epairid}a inet6 ifdisabled up"; exec.prestart +=3D "ifconfig bridge0 addm epair${epairid}a"; exec.created =3D "cpuset -l 1 -j ${name}"; exec.start =3D "ifconfig epair${epairid}b ether 02:ef:a4:c1:60:0${epai= rid}"; exec.start +=3D "ifconfig epair${epairid}b inet ${ipaddress} netmask ${netmask}"; exec.start +=3D "route add default ${gateway}"; exec.start +=3D "sh /etc/rc"; exec.stop =3D "sh /etc/rc.shutdown jail"; exec.poststop =3D "ifconfig epair${epairid}a destroy"; host.hostname =3D "${name}"; mount.devfs; vnet; vnet.interface =3D "epair${epairid}b"; test1 { $epairid =3D 1; $ipaddress =3D 192.168.0.101; $netmask =3D 255.255.255.0; $gateway =3D 192.168.0.1; } test2 { $epairid =3D 2; $ipaddress =3D 192.168.0.102; $netmask =3D 255.255.255.0; $gateway =3D 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 - --=20 You are receiving this mail because: You are the assignee for the bug.=