From owner-freebsd-current@freebsd.org Thu May 9 18:22:59 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 466EA1589EF2 for ; Thu, 9 May 2019 18:22:59 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from cell.glebi.us (glebi.us [162.251.186.162]) (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 "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F183736F1; Thu, 9 May 2019 18:22:58 +0000 (UTC) (envelope-from glebius@freebsd.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id x49IMtYh004957 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 9 May 2019 11:22:55 -0700 (PDT) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id x49IMt4k004956; Thu, 9 May 2019 11:22:55 -0700 (PDT) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@freebsd.org using -f Date: Thu, 9 May 2019 11:22:55 -0700 From: Gleb Smirnoff To: Michael Butler Cc: Kyle Evans , FreeBSD Current Subject: Re: at SVN r347375, terminating/restarting openvpn on tap causes panic Message-ID: <20190509182255.GU1243@FreeBSD.org> References: <58ad8292-a24b-b9ce-a1a2-3e159f42ed78@protected-networks.net> <5333dd8d-9e01-f748-1b79-5dd1b22bf15f@protected-networks.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Rspamd-Queue-Id: 7F183736F1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:27348, ipnet:162.251.186.0/24, country:US] 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 18:22:59 -0000 Michael, On Thu, May 09, 2019 at 10:25:37AM -0500, Kyle Evans wrote: K> > #0 doadump () at src/sys/amd64/include/pcpu.h:241 K> > #1 0xffffffff808393c8 in kern_reboot (howto=260) at K> > /usr/src/sys/kern/kern_shutdown.c:470 K> > #2 0xffffffff80839826 in vpanic (fmt=, ap= > optimized out>) at /usr/src/sys/kern/kern_shutdown.c:896 K> > #3 0xffffffff80839663 in panic (fmt=) at K> > /usr/src/sys/kern/kern_shutdown.c:823 K> > #4 0xffffffff80c318a6 in trap_fatal (frame=0xfffffe0072b14510, eva=156) K> > at /usr/src/sys/amd64/amd64/trap.c:946 K> > #5 0xffffffff80c31c59 in trap_pfault (frame=0xfffffe0072b14510, K> > usermode=0) at src/sys/amd64/include/cpufunc.h:423 K> > #6 0xffffffff80c30fde in trap (frame=0xfffffe0072b14510) at K> > /usr/src/sys/amd64/amd64/trap.c:441 K> > #7 0xffffffff80c0d4b5 in calltrap () at K> > /usr/src/sys/amd64/amd64/exception.S:232 K> > #8 0xffffffff80a15377 in ip_output (m=, opt= > optimized out>, ro=0x0, flags=0, imo=0xfffffe0072b14780, inp=0x0) at K> > /usr/src/sys/netinet/ip_output.c:362 K> > #9 0xffffffff809ffea4 in igmp_intr (m=) at K> > /usr/src/sys/netinet/igmp.c:3455 K> > #10 0xffffffff80975a0f in netisr_dispatch_src (proto=2, source= > optimized out>, m=) at /usr/src/sys/net/netisr.c:1122 K> > #11 0xffffffff809fe07a in igmp_fasttimo () at K> > /usr/src/sys/netinet/igmp.c:496 K> > #12 0xffffffff808c5854 in pffasttimo (arg=) at K> > /usr/src/sys/kern/uipc_domain.c:521 K> > #13 0xffffffff80853df3 in softclock_call_cc (c=0xffffffff813f7f48, K> > cc=0xffffffff814c9ac0, direct=0) at /usr/src/sys/kern/kern_timeout.c:731 K> > #14 0xffffffff808542b9 in softclock (arg=0xffffffff814c9ac0) at K> > /usr/src/sys/kern/kern_timeout.c:869 K> > #15 0xffffffff807fd0c4 in ithread_loop (arg=) at K> > /usr/src/sys/kern/kern_intr.c:1129 K> > #16 0xffffffff807f9f33 in fork_exit (callout=0xffffffff807fcef0 K> > , arg=0xfffff800025f10a0, frame=0xfffffe0072b14ac0) at K> > /usr/src/sys/kern/kern_fork.c:1058 K> > #17 0xffffffff80c0e4ae in fork_trampoline () at K> > /usr/src/sys/amd64/amd64/exception.S:995 K> > #18 0x0000000000000000 in ?? () K> > K> K> Ah, I misread your backtrace (and forgot the proper tap detachment K> from my previous patch, so that's fixed/committed anyways). CC'ing K> Gleb for further triage as committer of r347375 that touched things in K> this path. Michael, can you please dump a core and look at it in kgdb? Line 362 in ip_output() really belongs to part that had minimal change with r347375. So I need more details. Can you please print out in kgdb the following variables: imo, ifp, ia? -- Gleb Smirnoff