From owner-freebsd-testing@freebsd.org Thu Aug 22 12:01:39 2019 Return-Path: Delivered-To: freebsd-testing@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 31C2DC7699 for ; Thu, 22 Aug 2019 12:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Djmz0dJFz4P3c for ; Thu, 22 Aug 2019 12:01:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 15759C7691; Thu, 22 Aug 2019 12:01:39 +0000 (UTC) Delivered-To: testing@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 15348C7690 for ; Thu, 22 Aug 2019 12:01:39 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Djmy6sq8z4P3Z for ; Thu, 22 Aug 2019 12:01:38 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE68B3DEC for ; Thu, 22 Aug 2019 12:01:38 +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 x7MC1cPX024316 for ; Thu, 22 Aug 2019 12:01:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7MC1c5s024300 for testing@freebsd.org; Thu, 22 Aug 2019 12:01:38 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: testing@freebsd.org Subject: [Bug 238870] sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy cause panic Date: Thu, 22 Aug 2019 12:01:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-testing@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2019 12:01:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238870 --- Comment #14 from Kristof Provost --- (In reply to Hans Petter Selasky from comment #13) Good point, but it's also not trivial to add this, because if_detach_intern= al() does an epoch_wait_preempt() on the net epoch. Simply adding NET_EPOCH_ENTER/EXIT around the loop produces this panic: panic: epoch_wait_preempt() called in the middle of an epoch section of the same epoch cpuid =3D 5 time =3D 1566475161 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0091dc6= 5a0 vpanic() at vpanic+0x19d/frame 0xfffffe0091dc65f0 panic() at panic+0x43/frame 0xfffffe0091dc6650 epoch_wait_preempt() at epoch_wait_preempt+0x29c/frame 0xfffffe0091dc66b0 if_detach_internal() at if_detach_internal+0x1a6/frame 0xfffffe0091dc6730 if_vmove() at if_vmove+0x4b/frame 0xfffffe0091dc6780 vnet_if_return() at vnet_if_return+0x58/frame 0xfffffe0091dc67c0 vnet_destroy() at vnet_destroy+0x124/frame 0xfffffe0091dc67f0 prison_deref() at prison_deref+0x29d/frame 0xfffffe0091dc6830 sys_jail_remove() at sys_jail_remove+0x28f/frame 0xfffffe0091dc6880 amd64_syscall() at amd64_syscall+0x2bb/frame 0xfffffe0091dc69b0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0091dc69b0 --- syscall (508, FreeBSD ELF64, sys_jail_remove), rip =3D 0x80031712a, rsp= =3D 0x7fffffffe848, rbp =3D 0x7fffffffe8d0 --- KDB: enter: panic [ thread pid 1174 tid 100507 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why db> --=20 You are receiving this mail because: You are the assignee for the bug.=