From owner-freebsd-current@freebsd.org Thu May 9 12:24:33 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 404D515A80E1 for ; Thu, 9 May 2019 12:24:33 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [IPv6:2001:470:8d59:1::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B42298CD3C for ; Thu, 9 May 2019 12:24:32 +0000 (UTC) (envelope-from imb@protected-networks.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding :content-language:content-type:content-type:mime-version :user-agent:date:date:message-id:subject:subject:from:from; s= 201508; t=1557404669; bh=ErUIFTBw/BjAsAZmOGbvkq+DAfPtRymPFVCrJdX umrI=; b=VAFPloHeTAND8Igckrw3qUUQVJVdJFDpLAH6CBOoi+9SG7/lwAVartt UlxuGODXsx01mpboxC3IhBXvS7TvPQC82onkeGwM6XC9X/ittsj1aXy5q/XlKToX W1bi0Tfd4aD8ko+yDaHdSr2ZRZQCQMJYMlSjBNv1wcPhOLqdsID8= Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id F2AB821AD5 for ; Thu, 9 May 2019 08:24:28 -0400 (EDT) To: FreeBSD Current From: Michael Butler Subject: at SVN r347375, terminating/restarting openvpn on tap causes panic Openpgp: preference=signencrypt Message-ID: <58ad8292-a24b-b9ce-a1a2-3e159f42ed78@protected-networks.net> Date: Thu, 9 May 2019 08:24:28 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Language: en-NZ Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2019 12:24:33 -0000 Seems there's a lock or tuntap issue after recent changes. Restarting openvpn (configured to use /dev/tap) yields a panic as follows: (kgdb) bt #0 doadump () at src/sys/amd64/include/pcpu.h:241 #1 0xffffffff808393c8 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:470 #2 0xffffffff80839826 in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:896 #3 0xffffffff80839663 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:823 #4 0xffffffff80c31686 in trap_fatal (frame=0xfffffe0072b14510, eva=156) at /usr/src/sys/amd64/amd64/trap.c:946 #5 0xffffffff80c31a39 in trap_pfault (frame=0xfffffe0072b14510, usermode=0) at src/sys/amd64/include/cpufunc.h:423 #6 0xffffffff80c30dbe in trap (frame=0xfffffe0072b14510) at /usr/src/sys/amd64/amd64/trap.c:441 #7 0xffffffff80c0d295 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232 #8 0xffffffff80a15387 in ip_output (m=, opt=, ro=0x0, flags=0, imo=0xfffffe0072b14780, inp=0x0) at /usr/src/sys/netinet/ip_output.c:362 #9 0xffffffff809ffeb4 in igmp_intr (m=) at /usr/src/sys/netinet/igmp.c:3455 #10 0xffffffff80975a1f in netisr_dispatch_src (proto=2, source=, m=) at /usr/src/sys/net/netisr.c:1122 #11 0xffffffff809fe08a in igmp_fasttimo () at /usr/src/sys/netinet/igmp.c:496 #12 0xffffffff808c5854 in pffasttimo (arg=) at /usr/src/sys/kern/uipc_domain.c:521 #13 0xffffffff80853df3 in softclock_call_cc (c=0xffffffff813f7f48, cc=0xffffffff814c9ac0, direct=0) at /usr/src/sys/kern/kern_timeout.c:731 #14 0xffffffff808542b9 in softclock (arg=0xffffffff814c9ac0) at /usr/src/sys/kern/kern_timeout.c:869 #15 0xffffffff807fd0c4 in ithread_loop (arg=) at /usr/src/sys/kern/kern_intr.c:1129 #16 0xffffffff807f9f33 in fork_exit (callout=0xffffffff807fcef0 , arg=0xfffff80002620100, frame=0xfffffe0072b14ac0) at /usr/src/sys/kern/kern_fork.c:1058 #17 0xffffffff80c0e28e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:995 #18 0x0000000000000000 in ?? () imb