From owner-freebsd-bugs@freebsd.org Thu Feb 20 09:55:45 2020 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 21CD125AF8E for ; Thu, 20 Feb 2020 09:55:45 +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 48NVMh658cz4gSs for ; Thu, 20 Feb 2020 09:55:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D0AA325AF8D; Thu, 20 Feb 2020 09:55:44 +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 D05D225AF8C for ; Thu, 20 Feb 2020 09:55:44 +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 48NVMh038tz4gSJ for ; Thu, 20 Feb 2020 09:55:44 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EB2161FDC7 for ; Thu, 20 Feb 2020 09:55:43 +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 01K9thlj089488 for ; Thu, 20 Feb 2020 09:55:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01K9thU5089486 for bugs@FreeBSD.org; Thu, 20 Feb 2020 09:55:43 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 244241] ng_eiface: panic: epoch_wait_preempt() called in the middle of an epoch section of the same epoch Date: Thu, 20 Feb 2020 09:55:43 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: aleksandr.fedorov@itglobal.com 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 09:55:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244241 Bug ID: 244241 Summary: ng_eiface: panic: epoch_wait_preempt() called in the middle of an epoch section of the same epoch Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: aleksandr.fedorov@itglobal.com After creating 10-20 ngethN interfaces (ngctl mkpeer . eiface test ether), I observe the following panic: Unread portion of the kernel message buffer:=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 panic: epoch_wait_preempt() called in the middle of an epoch section of the same epoch=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 cpuid =3D 2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 time =3D 1582189253=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 KDB: stack backtrace:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe027869a= 520=20=20 vpanic() at vpanic+0x185/frame 0xfffffe027869a580=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 panic() at panic+0x43/frame 0xfffffe027869a5e0=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 epoch_wait_preempt() at epoch_wait_preempt+0x293/frame 0xfffffe027869a640= =20=20=20=20=20=20=20 if_alloc_domain() at if_alloc_domain+0x1d0/frame 0xfffffe027869a680=20=20= =20=20=20=20=20=20=20=20=20=20=20 ng_eiface_constructor() at ng_eiface_constructor+0x74/frame 0xfffffe027869a= 6c0=20=20 ng_make_node() at ng_make_node+0xba/frame 0xfffffe027869a6f0 ng_mkpeer() at ng_mkpeer+0x24/frame 0xfffffe027869a740 ng_apply_item() at ng_apply_item+0x49d/frame 0xfffffe027869a7c0 ng_snd_item() at ng_snd_item+0x2b0/frame 0xfffffe027869a800 ngc_send() at ngc_send+0x1b7/frame 0xfffffe027869a8b0 sosend_generic() at sosend_generic+0x44c/frame 0xfffffe027869a960 sosend() at sosend+0x66/frame 0xfffffe027869a990=20 kern_sendit() at kern_sendit+0x21d/frame 0xfffffe027869aa20 sendit() at sendit+0x1d5/frame 0xfffffe027869aa70 sys_sendto() at sys_sendto+0x4d/frame 0xfffffe027869aac0 amd64_syscall() at amd64_syscall+0x168/frame 0xfffffe027869abf0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe027869abf0 --- syscall (133, FreeBSD ELF64, sys_sendto), rip =3D 0x800475c3a, rsp =3D 0x7fffffffce08, rbp =3D 0x7fffffffce50 --- Uptime: 18h46m4s Dumping 8823 out of 130910 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%.= .91% __curthread () at /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.h:55 55 /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.h: No such fil= e or directory. (kgdb) bt #0 __curthread () at /afedorov/freebsd-develop/sys/amd64/include/pcpu_aux.= h:55 #1 doadump (textdump=3D1) at /afedorov/freebsd-develop/sys/kern/kern_shutdown.c:393 #2 0xffffffff80bc7c50 in kern_reboot (howto=3D260) at /afedorov/freebsd-develop/sys/kern/kern_shutdown.c:480 #3 0xffffffff80bc80ad in vpanic (fmt=3D, ap=3D) at /afedorov/freebsd-develop/sys/kern/kern_shutdown.c:910 #4 0xffffffff80bc7e03 in panic (fmt=3D) at /afedorov/freebsd-develop/sys/kern/kern_shutdown.c:836 #5 0xffffffff80c0c9e3 in epoch_wait_preempt (epoch=3D0xfffff8010691ef00) at /afedorov/freebsd-develop/sys/kern/subr_epoch.c:610 #6 0xffffffff80cd1fe0 in if_alloc_domain (type=3D6 '\006', numa_domain=3D2= 55) at /afedorov/freebsd-develop/sys/net/if.c:541 #7 0xffffffff82e6a094 in ng_eiface_constructor (node=3D0xfffff801fa8df900)= at /afedorov/freebsd-develop/sys/netgraph/ng_eiface.c:393 #8 0xffffffff82e6d0ba in ng_make_node (typename=3D0xfffff801f5238538 "eifa= ce", nodepp=3D0xfffffe027869a708) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:618 #9 0xffffffff82e71d74 in ng_mkpeer (node=3D0xfffff801fa8df800, name=3D0xfffff801f5238558 "test", name2=3D0xfffff801f5238578 "ether", type=3D) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:1547 #10 0xffffffff82e6fbbd in ng_generic_msg (here=3D0xfffff801fa8df800, item=3D0xfffff812b7f86080, lasthook=3D) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:2538 #11 ng_apply_item (node=3D0xfffff801fa8df800, item=3D0xfffff812b7f86080, rw=3D) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:2= 438 #12 0xffffffff82e6f520 in ng_snd_item (item=3D0xfffff812b7f86080, flags=3D0= ) at /afedorov/freebsd-develop/sys/netgraph/ng_base.c:2321 #13 0xffffffff82e79db7 in ngc_send (so=3D, flags=3D, m=3D0xfffff802c6a2b000, addr=3D, control=3D, td=3D) at /afedorov/freebsd-develop/sys/netgraph/ng_socket.c:342 #14 0xffffffff80c678fc in sosend_generic (so=3D0xfffffe01e5d28710, addr=3D0xfffff801071785f0, uio=3D0xfffffe027869a9a8, top=3D0xfffff802c6a2b0= 00, control=3D, flags=3D0,=20 td=3D0xfffffe0277d02300) at /afedorov/freebsd-develop/sys/kern/uipc_socket.c:1650 #15 0xffffffff80c67b36 in sosend (so=3D, addr=3D, uio=3D, top=3D, control=3D0x0, flags=3D, td=3D0xfffffe0277d02300) at /afedorov/freebsd-develop/sys/kern/uipc_socket.c:1705 #16 0xffffffff80c6e98d in kern_sendit (td=3D, s=3D3, mp=3D0xfffffe027869aa80, flags=3D0, control=3D, segflg=3DUIO= _USERSPACE) at /afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:798 #17 0xffffffff80c6ed35 in sendit (td=3D0xfffffe0277d02300, s=3D, mp=3D0xfffffe027869aa80, flags=3D) at /afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:723 #18 0xffffffff80c6eb4d in sys_sendto (td=3D, uap=3D) at /afedorov/freebsd-develop/sys/kern/uipc_syscalls.c:841 #19 0xffffffff8106d8f8 in syscallenter (td=3D) at /afedorov/freebsd-develop/sys/amd64/amd64/../../kern/subr_syscall.c:162 #20 amd64_syscall (td=3D0xfffffe0277d02300, traced=3D0) at /afedorov/freebsd-develop/sys/amd64/amd64/trap.c:1162 #21 #22 0x0000000800475c3a in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffce08 (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=